diff options
-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 481cfd40c053..bc932c9b4272 100644 --- a/arch/avr32/kernel/vmlinux.lds.S +++ b/arch/avr32/kernel/vmlinux.lds.S | |||
@@ -93,8 +93,6 @@ SECTIONS | |||
93 | __stop___ex_table = .; | 93 | __stop___ex_table = .; |
94 | } | 94 | } |
95 | 95 | ||
96 | BUG_TABLE | ||
97 | |||
98 | RODATA | 96 | RODATA |
99 | 97 | ||
100 | . = ALIGN(THREAD_SIZE); | 98 | . = ALIGN(THREAD_SIZE); |
diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S index 50b4a3a25d0a..ff7d4ff4675a 100644 --- a/arch/parisc/kernel/vmlinux.lds.S +++ b/arch/parisc/kernel/vmlinux.lds.S | |||
@@ -66,7 +66,6 @@ SECTIONS | |||
66 | _etext = .; | 66 | _etext = .; |
67 | 67 | ||
68 | RODATA | 68 | RODATA |
69 | BUG_TABLE | ||
70 | 69 | ||
71 | /* writeable */ | 70 | /* writeable */ |
72 | /* Make sure this is page aligned so | 71 | /* 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 ce5ed083a1e9..aa0855471c79 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 | . = ALIGN(4); | 61 | . = ALIGN(4); |
64 | .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { | 62 | .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { |
diff --git a/arch/x86/kernel/vmlinux_64.lds.S b/arch/x86/kernel/vmlinux_64.lds.S index fad3674b06a5..d123747af1e4 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 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) { \ |