r3049 - branches/src/target/kernel/2.6.23.x/patches

shoragan at sita.openmoko.org shoragan at sita.openmoko.org
Thu Sep 27 00:55:57 CEST 2007


Author: shoragan
Date: 2007-09-27 00:55:56 +0200 (Thu, 27 Sep 2007)
New Revision: 3049

Added:
   branches/src/target/kernel/2.6.23.x/patches/explicitly-link-notes-section.patch
Modified:
   branches/src/target/kernel/2.6.23.x/patches/series
Log:
Fix linking problem by explicitly allocating a .notes section in vmlinux. This
should probably go upstream.

Added: branches/src/target/kernel/2.6.23.x/patches/explicitly-link-notes-section.patch
===================================================================
--- branches/src/target/kernel/2.6.23.x/patches/explicitly-link-notes-section.patch	2007-09-26 20:00:32 UTC (rev 3048)
+++ branches/src/target/kernel/2.6.23.x/patches/explicitly-link-notes-section.patch	2007-09-26 22:55:56 UTC (rev 3049)
@@ -0,0 +1,17 @@
+Since 2.6.23 kbuild produces a 3GB arch/arm/boot/Image because it includes a
+.note.gnu.build-id section at address 0 which is followed by 3GB of 0x00.
+The --build-id option is set in the toplevel Makefile.
+This patch explicitly puts the notes section after the TEXT section.
+Index: linux-2.6.23-rc8/arch/arm/kernel/vmlinux.lds.S
+===================================================================
+--- linux-2.6.23-rc8.orig/arch/arm/kernel/vmlinux.lds.S
++++ linux-2.6.23-rc8/arch/arm/kernel/vmlinux.lds.S
+@@ -105,6 +105,8 @@
+ 		*(.got)			/* Global offset table		*/
+ 	}
+ 
++	NOTES
++
+ 	RODATA
+ 
+ 	_etext = .;			/* End of text and rodata section */

Modified: branches/src/target/kernel/2.6.23.x/patches/series
===================================================================
--- branches/src/target/kernel/2.6.23.x/patches/series	2007-09-26 20:00:32 UTC (rev 3048)
+++ branches/src/target/kernel/2.6.23.x/patches/series	2007-09-26 22:55:56 UTC (rev 3049)
@@ -44,3 +44,4 @@
 s3c2410-nand-include-fix.patch
 s3c2410-udc-include-fix.patch
 neo1973-soc-include-fix.patch
+explicitly-link-notes-section.patch





More information about the commitlog mailing list