[U-Boot-Users] [Patch 03/17] U-Boot-V2:ARM: Fix lds file for multiple section enable

Menon, Nishanth x0nishan at ti.com
Wed May 21 18:25:40 CEST 2008


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<x0nishan at ti.com>

---
 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 = .;
 }




More information about the U-Boot mailing list