diff options
author | Jan Beulich <jbeulich@novell.com> | 2008-05-12 09:44:41 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-25 01:06:08 -0400 |
commit | 6360b1fbb4a939efd34fc770c2ebd927c55506e0 (patch) | |
tree | 8cf449a7177a6060f825fc03427b4e3baa3b0672 /include/asm-generic/vmlinux.lds.h | |
parent | 75d3bce2fc0a80f435fe12f2c9ed2632c8ac29e4 (diff) |
move BUG_TABLE into RODATA
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index f054778e916c..dd2cc8122ad8 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -67,6 +67,8 @@ | |||
67 | *(.rodata1) \ | 67 | *(.rodata1) \ |
68 | } \ | 68 | } \ |
69 | \ | 69 | \ |
70 | BUG_TABLE \ | ||
71 | \ | ||
70 | /* PCI quirks */ \ | 72 | /* PCI quirks */ \ |
71 | .pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \ | 73 | .pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \ |
72 | VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \ | 74 | VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \ |
@@ -310,6 +312,7 @@ | |||
310 | .stab.indexstr 0 : { *(.stab.indexstr) } \ | 312 | .stab.indexstr 0 : { *(.stab.indexstr) } \ |
311 | .comment 0 : { *(.comment) } | 313 | .comment 0 : { *(.comment) } |
312 | 314 | ||
315 | #ifdef CONFIG_GENERIC_BUG | ||
313 | #define BUG_TABLE \ | 316 | #define BUG_TABLE \ |
314 | . = ALIGN(8); \ | 317 | . = ALIGN(8); \ |
315 | __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \ | 318 | __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \ |
@@ -317,6 +320,9 @@ | |||
317 | *(__bug_table) \ | 320 | *(__bug_table) \ |
318 | __stop___bug_table = .; \ | 321 | __stop___bug_table = .; \ |
319 | } | 322 | } |
323 | #else | ||
324 | #define BUG_TABLE | ||
325 | #endif | ||
320 | 326 | ||
321 | #define NOTES \ | 327 | #define NOTES \ |
322 | .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ | 328 | .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ |