aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-07-14 18:28:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-14 18:28:10 -0400
commitd18bb9a548e550f3ced57618e75085fb3f173133 (patch)
treeea6be1655c55422cb5a1df84ae08f150b60e6808 /include
parent4bb0057f996b1491f93a64879f4c53c83bc0f0c7 (diff)
parent6d72b7952fa7d7c61d021398970c29afde6a4443 (diff)
Merge branch 'core/rodata' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core/rodata' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: move BUG_TABLE into RODATA
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/vmlinux.lds.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index f1992dc5c424..bf2851f93937 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) = .; \
@@ -312,6 +314,7 @@
312 .stab.indexstr 0 : { *(.stab.indexstr) } \ 314 .stab.indexstr 0 : { *(.stab.indexstr) } \
313 .comment 0 : { *(.comment) } 315 .comment 0 : { *(.comment) }
314 316
317#ifdef CONFIG_GENERIC_BUG
315#define BUG_TABLE \ 318#define BUG_TABLE \
316 . = ALIGN(8); \ 319 . = ALIGN(8); \
317 __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \ 320 __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \
@@ -319,6 +322,9 @@
319 *(__bug_table) \ 322 *(__bug_table) \
320 __stop___bug_table = .; \ 323 __stop___bug_table = .; \
321 } 324 }
325#else
326#define BUG_TABLE
327#endif
322 328
323#ifdef CONFIG_PM_TRACE 329#ifdef CONFIG_PM_TRACE
324#define TRACEDATA \ 330#define TRACEDATA \