diff options
author | Tim Abbott <tabbott@ksplice.com> | 2009-09-16 16:44:30 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-09-18 13:21:54 -0400 |
commit | 123f3e1d76952759c0fc8b4fec55a3fc8084d56f (patch) | |
tree | 9cb3798384311113f8c8b55727b9e4af97dd78fd /arch/x86 | |
parent | 07e81d61605f885920f31634a65aace52beb97db (diff) |
x86: Cleanup linker script using new linker script macros.
Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/vmlinux.lds.S | 47 |
1 files changed, 3 insertions, 44 deletions
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index 7d6cef363c47..8d2d0a271e23 100644 --- a/arch/x86/kernel/vmlinux.lds.S +++ b/arch/x86/kernel/vmlinux.lds.S | |||
@@ -88,13 +88,7 @@ SECTIONS | |||
88 | 88 | ||
89 | NOTES :text :note | 89 | NOTES :text :note |
90 | 90 | ||
91 | /* Exception table */ | 91 | EXCEPTION_TABLE(16) :text = 0x9090 |
92 | . = ALIGN(16); | ||
93 | __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { | ||
94 | __start___ex_table = .; | ||
95 | *(__ex_table) | ||
96 | __stop___ex_table = .; | ||
97 | } :text = 0x9090 | ||
98 | 92 | ||
99 | RO_DATA(PAGE_SIZE) | 93 | RO_DATA(PAGE_SIZE) |
100 | 94 | ||
@@ -207,36 +201,12 @@ SECTIONS | |||
207 | PERCPU_VADDR(0, :percpu) | 201 | PERCPU_VADDR(0, :percpu) |
208 | #endif | 202 | #endif |
209 | 203 | ||
210 | .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) { | 204 | INIT_TEXT_SECTION(PAGE_SIZE) |
211 | _sinittext = .; | ||
212 | INIT_TEXT | ||
213 | _einittext = .; | ||
214 | } | ||
215 | #ifdef CONFIG_X86_64 | 205 | #ifdef CONFIG_X86_64 |
216 | :init | 206 | :init |
217 | #endif | 207 | #endif |
218 | 208 | ||
219 | .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) { | 209 | INIT_DATA_SECTION(16) |
220 | INIT_DATA | ||
221 | } | ||
222 | |||
223 | . = ALIGN(16); | ||
224 | .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) { | ||
225 | __setup_start = .; | ||
226 | *(.init.setup) | ||
227 | __setup_end = .; | ||
228 | } | ||
229 | .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET) { | ||
230 | __initcall_start = .; | ||
231 | INITCALLS | ||
232 | __initcall_end = .; | ||
233 | } | ||
234 | |||
235 | .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) { | ||
236 | __con_initcall_start = .; | ||
237 | *(.con_initcall.init) | ||
238 | __con_initcall_end = .; | ||
239 | } | ||
240 | 210 | ||
241 | .x86_cpu_dev.init : AT(ADDR(.x86_cpu_dev.init) - LOAD_OFFSET) { | 211 | .x86_cpu_dev.init : AT(ADDR(.x86_cpu_dev.init) - LOAD_OFFSET) { |
242 | __x86_cpu_dev_start = .; | 212 | __x86_cpu_dev_start = .; |
@@ -244,8 +214,6 @@ SECTIONS | |||
244 | __x86_cpu_dev_end = .; | 214 | __x86_cpu_dev_end = .; |
245 | } | 215 | } |
246 | 216 | ||
247 | SECURITY_INIT | ||
248 | |||
249 | . = ALIGN(8); | 217 | . = ALIGN(8); |
250 | .parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) { | 218 | .parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) { |
251 | __parainstructions = .; | 219 | __parainstructions = .; |
@@ -276,15 +244,6 @@ SECTIONS | |||
276 | EXIT_DATA | 244 | EXIT_DATA |
277 | } | 245 | } |
278 | 246 | ||
279 | #ifdef CONFIG_BLK_DEV_INITRD | ||
280 | . = ALIGN(PAGE_SIZE); | ||
281 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { | ||
282 | __initramfs_start = .; | ||
283 | *(.init.ramfs) | ||
284 | __initramfs_end = .; | ||
285 | } | ||
286 | #endif | ||
287 | |||
288 | #if !defined(CONFIG_X86_64) || !defined(CONFIG_SMP) | 247 | #if !defined(CONFIG_X86_64) || !defined(CONFIG_SMP) |
289 | PERCPU(PAGE_SIZE) | 248 | PERCPU(PAGE_SIZE) |
290 | #endif | 249 | #endif |