diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-14 18:28:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-14 18:28:10 -0400 |
commit | d18bb9a548e550f3ced57618e75085fb3f173133 (patch) | |
tree | ea6be1655c55422cb5a1df84ae08f150b60e6808 | |
parent | 4bb0057f996b1491f93a64879f4c53c83bc0f0c7 (diff) | |
parent | 6d72b7952fa7d7c61d021398970c29afde6a4443 (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
-rw-r--r-- | arch/avr32/kernel/vmlinux.lds.S | 2 | ||||
-rw-r--r-- | arch/parisc/kernel/vmlinux.lds.S | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/vmlinux.lds.S | 2 | ||||
-rw-r--r-- | arch/s390/kernel/vmlinux.lds.S | 1 | ||||
-rw-r--r-- | arch/sh/kernel/vmlinux_32.lds.S | 1 | ||||
-rw-r--r-- | arch/sh/kernel/vmlinux_64.lds.S | 1 | ||||
-rw-r--r-- | arch/x86/kernel/vmlinux_32.lds.S | 8 | ||||
-rw-r--r-- | arch/x86/kernel/vmlinux_64.lds.S | 10 | ||||
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 6 |
9 files changed, 13 insertions, 19 deletions
diff --git a/arch/avr32/kernel/vmlinux.lds.S b/arch/avr32/kernel/vmlinux.lds.S index 5d25d8eeb750..7910d41eb886 100644 --- a/arch/avr32/kernel/vmlinux.lds.S +++ b/arch/avr32/kernel/vmlinux.lds.S | |||
@@ -85,8 +85,6 @@ SECTIONS | |||
85 | __stop___ex_table = .; | 85 | __stop___ex_table = .; |
86 | } | 86 | } |
87 | 87 | ||
88 | BUG_TABLE | ||
89 | |||
90 | RODATA | 88 | RODATA |
91 | 89 | ||
92 | . = ALIGN(THREAD_SIZE); | 90 | . = ALIGN(THREAD_SIZE); |
diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S index 2e516b871752..1a3b6ccd3620 100644 --- a/arch/parisc/kernel/vmlinux.lds.S +++ b/arch/parisc/kernel/vmlinux.lds.S | |||
@@ -67,7 +67,6 @@ SECTIONS | |||
67 | _etext = .; | 67 | _etext = .; |
68 | 68 | ||
69 | RODATA | 69 | RODATA |
70 | BUG_TABLE | ||
71 | 70 | ||
72 | /* writeable */ | 71 | /* writeable */ |
73 | /* Make sure this is page aligned so | 72 | /* Make sure this is page aligned so |
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 0c3000bf8d75..53d57d17a894 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S | |||
@@ -64,8 +64,6 @@ SECTIONS | |||
64 | 64 | ||
65 | NOTES | 65 | NOTES |
66 | 66 | ||
67 | BUG_TABLE | ||
68 | |||
69 | /* | 67 | /* |
70 | * Init sections discarded at runtime | 68 | * Init sections discarded at runtime |
71 | */ | 69 | */ |
diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index b4607155e8d0..76c1e60c92f3 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S | |||
@@ -40,7 +40,6 @@ SECTIONS | |||
40 | _etext = .; /* End of text section */ | 40 | _etext = .; /* End of text section */ |
41 | 41 | ||
42 | NOTES :text :note | 42 | NOTES :text :note |
43 | BUG_TABLE :text | ||
44 | 43 | ||
45 | RODATA | 44 | RODATA |
46 | 45 | ||
diff --git a/arch/sh/kernel/vmlinux_32.lds.S b/arch/sh/kernel/vmlinux_32.lds.S index c7113786ecd4..7b4b82bd1156 100644 --- a/arch/sh/kernel/vmlinux_32.lds.S +++ b/arch/sh/kernel/vmlinux_32.lds.S | |||
@@ -44,7 +44,6 @@ SECTIONS | |||
44 | 44 | ||
45 | _etext = .; /* End of text section */ | 45 | _etext = .; /* End of text section */ |
46 | 46 | ||
47 | BUG_TABLE | ||
48 | NOTES | 47 | NOTES |
49 | RO_DATA(PAGE_SIZE) | 48 | RO_DATA(PAGE_SIZE) |
50 | 49 | ||
diff --git a/arch/sh/kernel/vmlinux_64.lds.S b/arch/sh/kernel/vmlinux_64.lds.S index d1e177009a41..33fa46451406 100644 --- a/arch/sh/kernel/vmlinux_64.lds.S +++ b/arch/sh/kernel/vmlinux_64.lds.S | |||
@@ -65,7 +65,6 @@ SECTIONS | |||
65 | 65 | ||
66 | _etext = .; /* End of text section */ | 66 | _etext = .; /* End of text section */ |
67 | 67 | ||
68 | BUG_TABLE | ||
69 | NOTES | 68 | NOTES |
70 | RO_DATA(PAGE_SIZE) | 69 | RO_DATA(PAGE_SIZE) |
71 | 70 | ||
diff --git a/arch/x86/kernel/vmlinux_32.lds.S b/arch/x86/kernel/vmlinux_32.lds.S index 2674f5796275..cdb2363697d2 100644 --- a/arch/x86/kernel/vmlinux_32.lds.S +++ b/arch/x86/kernel/vmlinux_32.lds.S | |||
@@ -49,16 +49,14 @@ SECTIONS | |||
49 | _etext = .; /* End of text section */ | 49 | _etext = .; /* End of text section */ |
50 | } :text = 0x9090 | 50 | } :text = 0x9090 |
51 | 51 | ||
52 | NOTES :text :note | ||
53 | |||
52 | . = ALIGN(16); /* Exception table */ | 54 | . = ALIGN(16); /* Exception table */ |
53 | __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { | 55 | __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { |
54 | __start___ex_table = .; | 56 | __start___ex_table = .; |
55 | *(__ex_table) | 57 | *(__ex_table) |
56 | __stop___ex_table = .; | 58 | __stop___ex_table = .; |
57 | } | 59 | } :text = 0x9090 |
58 | |||
59 | NOTES :text :note | ||
60 | |||
61 | BUG_TABLE :text | ||
62 | 60 | ||
63 | RODATA | 61 | RODATA |
64 | 62 | ||
diff --git a/arch/x86/kernel/vmlinux_64.lds.S b/arch/x86/kernel/vmlinux_64.lds.S index fd246e22fe6b..63e5c1a22e88 100644 --- a/arch/x86/kernel/vmlinux_64.lds.S +++ b/arch/x86/kernel/vmlinux_64.lds.S | |||
@@ -19,7 +19,7 @@ PHDRS { | |||
19 | data PT_LOAD FLAGS(7); /* RWE */ | 19 | data PT_LOAD FLAGS(7); /* RWE */ |
20 | user PT_LOAD FLAGS(7); /* RWE */ | 20 | user PT_LOAD FLAGS(7); /* RWE */ |
21 | data.init PT_LOAD FLAGS(7); /* RWE */ | 21 | data.init PT_LOAD FLAGS(7); /* RWE */ |
22 | note PT_NOTE FLAGS(4); /* R__ */ | 22 | note PT_NOTE FLAGS(0); /* ___ */ |
23 | } | 23 | } |
24 | SECTIONS | 24 | SECTIONS |
25 | { | 25 | { |
@@ -40,16 +40,14 @@ SECTIONS | |||
40 | _etext = .; /* End of text section */ | 40 | _etext = .; /* End of text section */ |
41 | } :text = 0x9090 | 41 | } :text = 0x9090 |
42 | 42 | ||
43 | NOTES :text :note | ||
44 | |||
43 | . = ALIGN(16); /* Exception table */ | 45 | . = ALIGN(16); /* Exception table */ |
44 | __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { | 46 | __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { |
45 | __start___ex_table = .; | 47 | __start___ex_table = .; |
46 | *(__ex_table) | 48 | *(__ex_table) |
47 | __stop___ex_table = .; | 49 | __stop___ex_table = .; |
48 | } | 50 | } :text = 0x9090 |
49 | |||
50 | NOTES :text :note | ||
51 | |||
52 | BUG_TABLE :text | ||
53 | 51 | ||
54 | RODATA | 52 | RODATA |
55 | 53 | ||
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 \ |