By enabling -fdata-sections -ffunction-sections in arch/arm/Makefile, gcc 
splits the code into multiple sections. By using * wildcard we can bunch them 
into the areas we want them to be.

Signed-off-by: Nishanth Menon<[EMAIL PROTECTED]>

---
 arch/arm/lib/u-boot.lds.S |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Index: u-boot-v2.git/arch/arm/lib/u-boot.lds.S
===================================================================
--- u-boot-v2.git.orig/arch/arm/lib/u-boot.lds.S        2008-05-20 
17:19:43.000000000 -0500
+++ u-boot-v2.git/arch/arm/lib/u-boot.lds.S     2008-05-20 17:26:32.000000000 
-0500
@@ -36,20 +36,20 @@
        {
                _stext = .;
                _text = .;
-               *(.text_entry)
-               *(.text)
+               *(.text_entry*)
+               *(.text*)
        }
 
        . = ALIGN(4);
-       .rodata : { *(.rodata) }
+       .rodata : { *(.rodata*) }
 
        _etext = .;                     /* End of text and rodata section */
 
        . = ALIGN(4);
-       .data : { *(.data) }
+       .data : { *(.data*) }
 
        . = ALIGN(4);
-       .got : { *(.got) }
+       .got : { *(.got*) }
 
        . = .;
        __u_boot_cmd_start = .;
@@ -66,6 +66,6 @@
 
        . = ALIGN(4);
        __bss_start = .;
-       .bss : { *(.bss) }
+       .bss : { *(.bss*) }
        _end = .;
 }

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to