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 --- examples/standalone/mips.lds | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') 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 = .; } -- cgit v1.1