diff options
author | Daniel Schwierzeck <daniel.schwierzeck@googlemail.com> | 2011-04-15 15:16:44 (GMT) |
---|---|---|
committer | Shinya Kuribayashi <skuribay@pobox.com> | 2011-05-09 15:08:10 (GMT) |
commit | 660da0947abff3bc98bb0baa37a6db5050ff46d6 (patch) | |
tree | 8586e9594f64d2a366706b3729180e0516a913d6 /examples | |
parent | 7aa1f198c897e48a011f9f0dca6b3088bc474236 (diff) | |
download | u-boot-660da0947abff3bc98bb0baa37a6db5050ff46d6.tar.xz |
MIPS: Introduce --gc-sections for MIPS
All architectures but MIPS are using --gc-sections on final linking.
This patch introduces that feature for MIPS to reduce the memory and
flash footprint.
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Thomas Lange <thomas@corelatus.se>
Cc: Vlad Lungu <vlad.lungu@windriver.com>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/standalone/mips.lds | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/standalone/mips.lds b/examples/standalone/mips.lds index 63a1c92..5f766ed 100644 --- a/examples/standalone/mips.lds +++ b/examples/standalone/mips.lds @@ -30,14 +30,14 @@ SECTIONS { .text : { - *(.text) + *(.text*) } . = ALIGN(4); .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } . = ALIGN(4); - .data : { *(.data) } + .data : { *(.data*) } . = .; _gp = ALIGN(16) + 0x7ff0; @@ -48,12 +48,12 @@ SECTIONS __got_end = .; } - .sdata : { *(.sdata) } + .sdata : { *(.sdata*) } . = ALIGN(4); __bss_start = .; - .sbss (NOLOAD) : { *(.sbss) } - .bss (NOLOAD) : { *(.bss) . = ALIGN(4); } + .sbss (NOLOAD) : { *(.sbss*) } + .bss (NOLOAD) : { *(.bss*) . = ALIGN(4); } _end = .; } |