Skip to contentSkip to conversation

core/rodata change for v2.6.27

GIT PULL Ingo Molnar 1 participant 1 message Jul 14, 2008

Subsystems (6)
x86 PowerPC s390 SuperH +2 more subsystems
lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest core/rodata git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git core/rodata

moves BUG_TABLE into RODATA where it belongs.

Thanks,

Ingo

------------------>
Jan Beulich (1):
move BUG_TABLE into RODATA

 arch/avr32/kernel/vmlinux.lds.S   |    2 --
 arch/parisc/kernel/vmlinux.lds.S  |    1 -
 arch/powerpc/kernel/vmlinux.lds.S |    2 --
 arch/s390/kernel/vmlinux.lds.S    |    1 -
 arch/sh/kernel/vmlinux_32.lds.S   |    1 -
 arch/sh/kernel/vmlinux_64.lds.S   |    1 -
 arch/x86/kernel/vmlinux_32.lds.S  |    8 +++-----
 arch/x86/kernel/vmlinux_64.lds.S  |   10 ++++------
 include/asm-generic/vmlinux.lds.h |    6 ++++++
 9 files changed, 13 insertions(+), 19 deletions(-)
arch/avr32/kernel/vmlinux.lds.S +0 -2
index 481cfd4..bc932c9 100644
@@ -93,8 +93,6 @@ SECTIONS
 		__stop___ex_table = .;
 	}
 
-	BUG_TABLE
-
 	RODATA
 
 	. = ALIGN(THREAD_SIZE);
arch/parisc/kernel/vmlinux.lds.S +0 -1
index 2e516b8..1a3b6cc 100644
@@ -67,7 +67,6 @@ SECTIONS
 	_etext = .;
 
 	RODATA
-	BUG_TABLE
 
 	/* writeable */
 	/* Make sure this is page aligned so
arch/powerpc/kernel/vmlinux.lds.S +0 -2
index 0c3000b..53d57d1 100644
@@ -64,8 +64,6 @@ SECTIONS
 
 	NOTES
 
-	BUG_TABLE
-
 /*
  * Init sections discarded at runtime
  */
arch/s390/kernel/vmlinux.lds.S +0 -1
index b460715..76c1e60 100644
@@ -40,7 +40,6 @@ SECTIONS
 	_etext = .;		/* End of text section */
 
 	NOTES :text :note
-	BUG_TABLE :text
 
 	RODATA
 
arch/sh/kernel/vmlinux_32.lds.S +0 -1
index c711378..7b4b82b 100644
@@ -44,7 +44,6 @@ SECTIONS
 
 	_etext = .;			/* End of text section */
 
-	BUG_TABLE
 	NOTES
 	RO_DATA(PAGE_SIZE)
 
arch/sh/kernel/vmlinux_64.lds.S +0 -1
index d1e1770..33fa464 100644
@@ -65,7 +65,6 @@ SECTIONS
 
 	_etext = .;			/* End of text section */
 
-	BUG_TABLE
 	NOTES 
 	RO_DATA(PAGE_SIZE)
 
arch/x86/kernel/vmlinux_32.lds.S +3 -5
index ce5ed08..aa08554 100644
@@ -49,16 +49,14 @@ SECTIONS
   	_etext = .;			/* End of text section */
   } :text = 0x9090
 
+  NOTES :text :note
+
   . = ALIGN(16);		/* Exception table */
   __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
   	__start___ex_table = .;
 	 *(__ex_table)
   	__stop___ex_table = .;
-  }
-
-  NOTES :text :note
-
-  BUG_TABLE :text
+  } :text = 0x9090
 
   . = ALIGN(4);
   .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) {
arch/x86/kernel/vmlinux_64.lds.S +4 -6
index fad3674..d123747 100644
@@ -19,7 +19,7 @@ PHDRS {
 	data PT_LOAD FLAGS(7);	/* RWE */
 	user PT_LOAD FLAGS(7);	/* RWE */
 	data.init PT_LOAD FLAGS(7);	/* RWE */
-	note PT_NOTE FLAGS(4);	/* R__ */
+	note PT_NOTE FLAGS(0);	/* ___ */
 }
 SECTIONS
 {
@@ -40,16 +40,14 @@ SECTIONS
 	_etext = .;		/* End of text section */
   } :text = 0x9090
 
+  NOTES :text :note
+
   . = ALIGN(16);		/* Exception table */
   __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
   	__start___ex_table = .;
 	 *(__ex_table)
   	__stop___ex_table = .;
-  }
-
-  NOTES :text :note
-
-  BUG_TABLE :text
+  } :text = 0x9090
 
   RODATA
 
include/asm-generic/vmlinux.lds.h +6 -0
index f054778..dd2cc81 100644
@@ -67,6 +67,8 @@
 		*(.rodata1)						\
 	}								\
 									\
+	BUG_TABLE							\
+									\
 	/* PCI quirks */						\
 	.pci_fixup        : AT(ADDR(.pci_fixup) - LOAD_OFFSET) {	\
 		VMLINUX_SYMBOL(__start_pci_fixups_early) = .;		\
@@ -310,6 +312,7 @@
 		.stab.indexstr 0 : { *(.stab.indexstr) }		\
 		.comment 0 : { *(.comment) }
 
+#ifdef CONFIG_GENERIC_BUG
 #define BUG_TABLE							\
 	. = ALIGN(8);							\
 	__bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) {		\
@@ -317,6 +320,9 @@
 		*(__bug_table)						\
 		__stop___bug_table = .;					\
 	}
+#else
+#define BUG_TABLE
+#endif
 
 #define NOTES								\
 	.notes : AT(ADDR(.notes) - LOAD_OFFSET) {			\