Commit 62bbc2f25aab6010042dc1d22e9f8449fc946449
1 parent
fae56934a0
Exists in
master
and in
49 other branches
cm_t335: fix linker file to produce full ELF
Newly added cm_t335 was missed in commit 47ed5dd0 which made ARM targets produce full ELF files. Fix its linker script. This change is binary-invariant when only .dynsym, .dynstr, .dynamic, .plt, .interp and .gun sections are declared. Sections .hash, .got.plt, .dynbss and .ARM.exidx are also declared so that their (unused) content is moved out of the u-boot binary. Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Showing 1 changed file with 10 additions and 6 deletions Side-by-side Diff
board/compulab/cm_t335/u-boot.lds
... | ... | @@ -92,11 +92,15 @@ |
92 | 92 | KEEP(*(.__bss_end)); |
93 | 93 | } |
94 | 94 | |
95 | - /DISCARD/ : { *(.dynsym) } | |
96 | - /DISCARD/ : { *(.dynstr*) } | |
97 | - /DISCARD/ : { *(.dynamic*) } | |
98 | - /DISCARD/ : { *(.plt*) } | |
99 | - /DISCARD/ : { *(.interp*) } | |
100 | - /DISCARD/ : { *(.gnu*) } | |
95 | + .dynsym _end : { *(.dynsym) } | |
96 | + .hash : { *(.hash) } | |
97 | + .got.plt : { *(.got.plt) } | |
98 | + .dynbss : { *(.dynbss) } | |
99 | + .dynstr : { *(.dynstr*) } | |
100 | + .dynamic : { *(.dynamic*) } | |
101 | + .plt : { *(.plt*) } | |
102 | + .interp : { *(.interp*) } | |
103 | + .gnu : { *(.gnu*) } | |
104 | + .ARM.exidx : { *(.ARM.exidx*) } | |
101 | 105 | } |