diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-11-07 17:21:46 +0400 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-12-07 09:53:58 +0400 |
commit | 47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7 (patch) | |
tree | ee44012f0dbdab4ea6f4f4434dfa85974b659329 /arch/arm/cpu/u-boot-spl.lds | |
parent | 3064d599afaed1e601479efa372a6e83d4ea9deb (diff) | |
download | u-boot-47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7.tar.xz |
arm: keep all sections in ELF file
Current LDS files /DISCARD/ a lot of sections when linking ELF
files, causing diagnostic tools such as readelf or objdump to
produce partial output. Keep all section at link stage, filter
only at objcopy time so that .bin remains minimal.
Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Diffstat (limited to 'arch/arm/cpu/u-boot-spl.lds')
-rw-r--r-- | arch/arm/cpu/u-boot-spl.lds | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/arm/cpu/u-boot-spl.lds b/arch/arm/cpu/u-boot-spl.lds index 36cc54a292..4880d0f78a 100644 --- a/arch/arm/cpu/u-boot-spl.lds +++ b/arch/arm/cpu/u-boot-spl.lds @@ -51,12 +51,15 @@ SECTIONS __bss_end = .; } - /DISCARD/ : { *(.dynsym) } - /DISCARD/ : { *(.dynstr*) } - /DISCARD/ : { *(.dynamic*) } - /DISCARD/ : { *(.plt*) } - /DISCARD/ : { *(.interp*) } - /DISCARD/ : { *(.gnu*) } + .dynsym _end : { *(.dynsym) } + .dynbss : { *(.dynbss) } + .dynstr : { *(.dynstr*) } + .dynamic : { *(.dynamic*) } + .hash : { *(.hash*) } + .plt : { *(.plt*) } + .interp : { *(.interp*) } + .gnu : { *(.gnu*) } + .ARM.exidx : { *(.ARM.exidx*) } } #if defined(CONFIG_SPL_MAX_SIZE) |