diff options
author | Daniel Schwierzeck <daniel.schwierzeck@googlemail.com> | 2011-04-15 17:16:44 +0200 |
---|---|---|
committer | Shinya Kuribayashi <skuribay@pobox.com> | 2011-05-10 00:08:10 +0900 |
commit | 660da0947abff3bc98bb0baa37a6db5050ff46d6 (patch) | |
tree | 8586e9594f64d2a366706b3729180e0516a913d6 /board/qemu-mips | |
parent | 7aa1f198c897e48a011f9f0dca6b3088bc474236 (diff) | |
download | u-boot-imx-660da0947abff3bc98bb0baa37a6db5050ff46d6.zip u-boot-imx-660da0947abff3bc98bb0baa37a6db5050ff46d6.tar.gz u-boot-imx-660da0947abff3bc98bb0baa37a6db5050ff46d6.tar.bz2 |
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 'board/qemu-mips')
-rw-r--r-- | board/qemu-mips/u-boot.lds | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/board/qemu-mips/u-boot.lds b/board/qemu-mips/u-boot.lds index bd16786..9460b20 100644 --- a/board/qemu-mips/u-boot.lds +++ b/board/qemu-mips/u-boot.lds @@ -34,14 +34,14 @@ SECTIONS . = ALIGN(4); .text : { - *(.text) + *(.text*) } . = ALIGN(4); .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } . = ALIGN(4); - .data : { *(.data) } + .data : { *(.data*) } . = .; _gp = ALIGN(16) +0x7ff0; @@ -53,7 +53,7 @@ SECTIONS } . = ALIGN(4); - .sdata : { *(.sdata) } + .sdata : { *(.sdata*) } . = .; .u_boot_cmd : { @@ -66,7 +66,7 @@ SECTIONS num_got_entries = (__got_end - __got_start) >> 2; . = ALIGN(4); - .sbss : { *(.sbss) } - .bss : { *(.bss) . = ALIGN(4); } + .sbss : { *(.sbss*) } + .bss : { *(.bss*) . = ALIGN(4); } uboot_end = .; } |