diff options
author | Albert Aribaud <albert.aribaud@free.fr> | 2010-11-15 21:46:04 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-11-17 20:46:06 +0100 |
commit | 858ecd9ac3434e011e84d5fd9013bd1ee199dbdc (patch) | |
tree | 8500e723c560c9ddb4d6455d185d258db11edf48 /nand_spl/board/karo/tx25 | |
parent | aaeb0a890a050b58be87fa2b165eec5fa947dc86 (diff) | |
download | u-boot-imx-858ecd9ac3434e011e84d5fd9013bd1ee199dbdc.zip u-boot-imx-858ecd9ac3434e011e84d5fd9013bd1ee199dbdc.tar.gz u-boot-imx-858ecd9ac3434e011e84d5fd9013bd1ee199dbdc.tar.bz2 |
tx25: fix linker file for newer ld support
older ld emitted all ELF relocations in input sections named
.rel.dyn, whereas newer ld uses names of the form .rel*. The
linker script only collected .rel.dyn input sections. Rewrite
to collect all .rel* input sections.
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
Diffstat (limited to 'nand_spl/board/karo/tx25')
-rw-r--r-- | nand_spl/board/karo/tx25/u-boot.lds | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/nand_spl/board/karo/tx25/u-boot.lds b/nand_spl/board/karo/tx25/u-boot.lds index 5f95c87..ff289fb 100644 --- a/nand_spl/board/karo/tx25/u-boot.lds +++ b/nand_spl/board/karo/tx25/u-boot.lds @@ -43,35 +43,33 @@ SECTIONS . = ALIGN(4); .data : { *(.data) - __datarel_start = .; - *(.data.rel) - __datarelrolocal_start = .; - *(.data.rel.ro.local) - __datarellocal_start = .; - *(.data.rel.local) - __datarelro_start = .; - *(.data.rel.ro) } . = ALIGN(4); - __rel_dyn_start = .; - __rel_dyn_end = .; - __dynsym_start = .; - - __got_start = .; - . = ALIGN(4); - .got : { *(.got) } - - __got_end = .; - . = .; __u_boot_cmd_start = .; .u_boot_cmd : { *(.u_boot_cmd) } __u_boot_cmd_end = .; . = ALIGN(4); - __bss_start = .; - .bss : { *(.bss) } - _end = .; + + .rel.dyn : { + __rel_dyn_start = .; + *(.rel*) + __rel_dyn_end = .; + } + + .dynsym : { + __dynsym_start = .; + *(.dynsym) + } + + .bss __rel_dyn_start (OVERLAY) : { + __bss_start = .; + *(.bss) + . = ALIGN(4); + _end = .; + } + /DISCARD/ : { *(.bss*) } /DISCARD/ : { *(.dynstr*) } /DISCARD/ : { *(.dynsym*) } |