From 660da0947abff3bc98bb0baa37a6db5050ff46d6 Mon Sep 17 00:00:00 2001 From: Daniel Schwierzeck Date: Fri, 15 Apr 2011 17:16:44 +0200 Subject: 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 Cc: Wolfgang Denk Cc: Stefan Roese Cc: Thomas Lange Cc: Vlad Lungu Signed-off-by: Shinya Kuribayashi --- board/gth2/u-boot.lds | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'board/gth2') diff --git a/board/gth2/u-boot.lds b/board/gth2/u-boot.lds index aeb0fcc..9fc417f 100644 --- a/board/gth2/u-boot.lds +++ b/board/gth2/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; @@ -52,7 +52,7 @@ SECTIONS __got_end = .; } - .sdata : { *(.sdata) } + .sdata : { *(.sdata*) } .u_boot_cmd : { __u_boot_cmd_start = .; @@ -64,7 +64,7 @@ SECTIONS num_got_entries = (__got_end - __got_start) >> 2; . = ALIGN(4); - .sbss (NOLOAD) : { *(.sbss) } - .bss (NOLOAD) : { *(.bss) . = ALIGN(4); } + .sbss (NOLOAD) : { *(.sbss*) } + .bss (NOLOAD) : { *(.bss*) . = ALIGN(4); } uboot_end = .; } -- cgit v1.1