Commit 6360b1fb authored by Jan Beulich's avatar Jan Beulich Committed by Thomas Gleixner

move BUG_TABLE into RODATA

Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 75d3bce2
...@@ -93,8 +93,6 @@ SECTIONS ...@@ -93,8 +93,6 @@ SECTIONS
__stop___ex_table = .; __stop___ex_table = .;
} }
BUG_TABLE
RODATA RODATA
. = ALIGN(THREAD_SIZE); . = ALIGN(THREAD_SIZE);
......
...@@ -66,7 +66,6 @@ SECTIONS ...@@ -66,7 +66,6 @@ SECTIONS
_etext = .; _etext = .;
RODATA RODATA
BUG_TABLE
/* writeable */ /* writeable */
/* Make sure this is page aligned so /* Make sure this is page aligned so
......
...@@ -64,8 +64,6 @@ SECTIONS ...@@ -64,8 +64,6 @@ SECTIONS
NOTES NOTES
BUG_TABLE
/* /*
* Init sections discarded at runtime * Init sections discarded at runtime
*/ */
......
...@@ -40,7 +40,6 @@ SECTIONS ...@@ -40,7 +40,6 @@ SECTIONS
_etext = .; /* End of text section */ _etext = .; /* End of text section */
NOTES :text :note NOTES :text :note
BUG_TABLE :text
RODATA RODATA
......
...@@ -44,7 +44,6 @@ SECTIONS ...@@ -44,7 +44,6 @@ SECTIONS
_etext = .; /* End of text section */ _etext = .; /* End of text section */
BUG_TABLE
NOTES NOTES
RO_DATA(PAGE_SIZE) RO_DATA(PAGE_SIZE)
......
...@@ -65,7 +65,6 @@ SECTIONS ...@@ -65,7 +65,6 @@ SECTIONS
_etext = .; /* End of text section */ _etext = .; /* End of text section */
BUG_TABLE
NOTES NOTES
RO_DATA(PAGE_SIZE) RO_DATA(PAGE_SIZE)
......
...@@ -49,16 +49,14 @@ SECTIONS ...@@ -49,16 +49,14 @@ SECTIONS
_etext = .; /* End of text section */ _etext = .; /* End of text section */
} :text = 0x9090 } :text = 0x9090
NOTES :text :note
. = ALIGN(16); /* Exception table */ . = ALIGN(16); /* Exception table */
__ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
__start___ex_table = .; __start___ex_table = .;
*(__ex_table) *(__ex_table)
__stop___ex_table = .; __stop___ex_table = .;
} } :text = 0x9090
NOTES :text :note
BUG_TABLE :text
. = ALIGN(4); . = ALIGN(4);
.tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) {
......
...@@ -19,7 +19,7 @@ PHDRS { ...@@ -19,7 +19,7 @@ PHDRS {
data PT_LOAD FLAGS(7); /* RWE */ data PT_LOAD FLAGS(7); /* RWE */
user PT_LOAD FLAGS(7); /* RWE */ user PT_LOAD FLAGS(7); /* RWE */
data.init PT_LOAD FLAGS(7); /* RWE */ data.init PT_LOAD FLAGS(7); /* RWE */
note PT_NOTE FLAGS(4); /* R__ */ note PT_NOTE FLAGS(0); /* ___ */
} }
SECTIONS SECTIONS
{ {
...@@ -40,16 +40,14 @@ SECTIONS ...@@ -40,16 +40,14 @@ SECTIONS
_etext = .; /* End of text section */ _etext = .; /* End of text section */
} :text = 0x9090 } :text = 0x9090
NOTES :text :note
. = ALIGN(16); /* Exception table */ . = ALIGN(16); /* Exception table */
__ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
__start___ex_table = .; __start___ex_table = .;
*(__ex_table) *(__ex_table)
__stop___ex_table = .; __stop___ex_table = .;
} } :text = 0x9090
NOTES :text :note
BUG_TABLE :text
RODATA RODATA
......
...@@ -67,6 +67,8 @@ ...@@ -67,6 +67,8 @@
*(.rodata1) \ *(.rodata1) \
} \ } \
\ \
BUG_TABLE \
\
/* PCI quirks */ \ /* PCI quirks */ \
.pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \ .pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \ VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \
...@@ -310,6 +312,7 @@ ...@@ -310,6 +312,7 @@
.stab.indexstr 0 : { *(.stab.indexstr) } \ .stab.indexstr 0 : { *(.stab.indexstr) } \
.comment 0 : { *(.comment) } .comment 0 : { *(.comment) }
#ifdef CONFIG_GENERIC_BUG
#define BUG_TABLE \ #define BUG_TABLE \
. = ALIGN(8); \ . = ALIGN(8); \
__bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \ __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \
...@@ -317,6 +320,9 @@ ...@@ -317,6 +320,9 @@
*(__bug_table) \ *(__bug_table) \
__stop___bug_table = .; \ __stop___bug_table = .; \
} }
#else
#define BUG_TABLE
#endif
#define NOTES \ #define NOTES \
.notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment