Skip to content

Commit

Permalink
m68k: use non-MMU linker script for ColdFire MMU builds
Browse files Browse the repository at this point in the history
Use the non-MMU linker script for ColdFire builds when we are building
for MMU enabled. The image layout is correct for loading on existing
ColdFire dev boards. The only addition required to the current non-MMU
linker script is to add support for the fixup section.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Matt Waddel <mwaddel@yahoo.com>
Acked-by: Kurt Mahan <kmahan@xmission.com>
  • Loading branch information
Greg Ungerer committed Dec 30, 2011
1 parent 4a13c6d commit ed865e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions arch/m68k/kernel/vmlinux-nommu.lds
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ SECTIONS {
SCHED_TEXT
LOCK_TEXT
*(.text..lock)
*(.fixup)

. = ALIGN(16); /* Exception table */
__start___ex_table = .;
Expand Down Expand Up @@ -161,6 +162,13 @@ SECTIONS {
_edata = . ;
} > DATA

.m68k_fixup : {
__start_fixup = .;
*(.m68k_fixup)
__stop_fixup = .;
} > DATA
NOTES > DATA

.init.text : {
. = ALIGN(PAGE_SIZE);
__init_begin = .;
Expand Down
2 changes: 1 addition & 1 deletion arch/m68k/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifdef CONFIG_MMU
#if defined(CONFIG_MMU) && !defined(CONFIG_COLDFIRE)
PHDRS
{
text PT_LOAD FILEHDR PHDRS FLAGS (7);
Expand Down

0 comments on commit ed865e3

Please sign in to comment.