mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 14:18:14 +01:00
ColdFire: Fix build error for astro mcf53731 board.
Fix the build error by clean up the lds file. Signed-off-by: Jason Jin <Jason.jin@freescale.com>
This commit is contained in:
parent
2b758cad8d
commit
fa862dd7ce
@ -22,51 +22,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
OUTPUT_ARCH(m68k)
|
OUTPUT_ARCH(m68k)
|
||||||
/* Do we need any of these for elf?
|
|
||||||
__DYNAMIC = 0; */
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
/* Read-only sections, merged into text segment: */
|
/* Read-only sections, merged into text segment: */
|
||||||
. = + SIZEOF_HEADERS;
|
|
||||||
.interp : { *(.interp) }
|
|
||||||
.hash : { *(.hash) }
|
|
||||||
.dynsym : { *(.dynsym) }
|
|
||||||
.dynstr : { *(.dynstr) }
|
|
||||||
.rel.text : { *(.rel.text) }
|
|
||||||
.rela.text : { *(.rela.text) }
|
|
||||||
.rel.data : { *(.rel.data) }
|
|
||||||
.rela.data : { *(.rela.data) }
|
|
||||||
.rel.rodata : { *(.rel.rodata) }
|
|
||||||
.rela.rodata : { *(.rela.rodata) }
|
|
||||||
.rel.got : { *(.rel.got) }
|
|
||||||
.rela.got : { *(.rela.got) }
|
|
||||||
.rel.ctors : { *(.rel.ctors) }
|
|
||||||
.rela.ctors : { *(.rela.ctors) }
|
|
||||||
.rel.dtors : { *(.rel.dtors) }
|
|
||||||
.rela.dtors : { *(.rela.dtors) }
|
|
||||||
.rel.bss : { *(.rel.bss) }
|
|
||||||
.rela.bss : { *(.rela.bss) }
|
|
||||||
.rel.plt : { *(.rel.plt) }
|
|
||||||
.rela.plt : { *(.rela.plt) }
|
|
||||||
.init : { *(.init) }
|
|
||||||
.plt : { *(.plt) }
|
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
/* WARNING - the following is hand-optimized to fit within */
|
arch/m68k/cpu/mcf532x/start.o (.text*)
|
||||||
/* the sector layout of our flash chips! XXX FIXME XXX */
|
|
||||||
|
|
||||||
arch/m68k/cpu/mcf532x/start.o (.text)
|
|
||||||
arch/m68k/lib/traps.o (.text)
|
|
||||||
arch/m68k/lib/interrupts.o (.text)
|
|
||||||
common/dlmalloc.o (.text)
|
|
||||||
lib/zlib.o (.text)
|
|
||||||
|
|
||||||
. = DEFINED(env_offset) ? env_offset : .;
|
. = DEFINED(env_offset) ? env_offset : .;
|
||||||
common/env_embedded.o (.text)
|
common/env_embedded.o (.text*)
|
||||||
|
|
||||||
*(.text)
|
*(.text*)
|
||||||
/* *(.fixup)*/
|
|
||||||
*(.got1)
|
|
||||||
}
|
}
|
||||||
_etext = .;
|
_etext = .;
|
||||||
PROVIDE (etext = .);
|
PROVIDE (etext = .);
|
||||||
@ -74,9 +41,6 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
|
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
|
||||||
}
|
}
|
||||||
.fini : { *(.fini) } =0
|
|
||||||
.ctors : { *(.ctors) }
|
|
||||||
.dtors : { *(.dtors) }
|
|
||||||
|
|
||||||
/* Read-write section, merged into data segment: */
|
/* Read-write section, merged into data segment: */
|
||||||
. = (. + 0x00FF) & 0xFFFFFF00;
|
. = (. + 0x00FF) & 0xFFFFFF00;
|
||||||
@ -86,24 +50,20 @@ SECTIONS
|
|||||||
.reloc :
|
.reloc :
|
||||||
{
|
{
|
||||||
__got_start = .;
|
__got_start = .;
|
||||||
*(.got)
|
KEEP(*(.got))
|
||||||
__got_end = .;
|
__got_end = .;
|
||||||
_GOT2_TABLE_ = .;
|
_GOT2_TABLE_ = .;
|
||||||
*(.got2)
|
KEEP(*(.got2))
|
||||||
_FIXUP_TABLE_ = .;
|
_FIXUP_TABLE_ = .;
|
||||||
*(.fixup)
|
KEEP(*(.fixup))
|
||||||
}
|
}
|
||||||
__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
|
__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
|
||||||
__fixup_entries = (. - _FIXUP_TABLE_)>>2;
|
__fixup_entries = (. - _FIXUP_TABLE_)>>2;
|
||||||
|
|
||||||
.data :
|
.data :
|
||||||
{
|
{
|
||||||
*(.data)
|
*(.data*)
|
||||||
*(.data1)
|
*(.sdata*)
|
||||||
*(.sdata)
|
|
||||||
*(.sdata2)
|
|
||||||
*(.dynamic)
|
|
||||||
CONSTRUCTORS
|
|
||||||
}
|
}
|
||||||
_edata = .;
|
_edata = .;
|
||||||
PROVIDE (edata = .);
|
PROVIDE (edata = .);
|
||||||
@ -113,7 +73,6 @@ SECTIONS
|
|||||||
.u_boot_cmd : { *(.u_boot_cmd) }
|
.u_boot_cmd : { *(.u_boot_cmd) }
|
||||||
__u_boot_cmd_end = .;
|
__u_boot_cmd_end = .;
|
||||||
|
|
||||||
|
|
||||||
. = .;
|
. = .;
|
||||||
__start___ex_table = .;
|
__start___ex_table = .;
|
||||||
__ex_table : { *(__ex_table) }
|
__ex_table : { *(__ex_table) }
|
||||||
@ -130,9 +89,8 @@ SECTIONS
|
|||||||
.bss :
|
.bss :
|
||||||
{
|
{
|
||||||
_sbss = .;
|
_sbss = .;
|
||||||
*(.sbss) *(.scommon)
|
*(.sbss*)
|
||||||
*(.dynbss)
|
*(.bss*)
|
||||||
*(.bss)
|
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_ebss = .;
|
_ebss = .;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user