aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/vmlinux_64.lds.S
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2009-04-29 03:47:25 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-29 04:20:33 -0400
commite58bdaa8f810332e5c1760ce496b01e07d51642c (patch)
tree701dce42e2d33487fe14674c9d9ae31bf157dccb /arch/x86/kernel/vmlinux_64.lds.S
parentff6f87e1626e10beef675084c9b5384a9477e3d5 (diff)
x86, vmlinux.lds: unify first part of initdata
32-bit: - Move definition of __init_begin outside output_section because it covers more than one section - Move ALIGN() for end-of-section inside .smp_locks output section. Same effect but the intent is better documented that we need both start and end aligned. 64-bit: - Move ALIGN() outside output section in .init.setup - Deleted unused __smp_alt_* symbols None of the above should result in any functional change. [ Impact: refactor and unify linker script ] Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Tim Abbott <tabbott@MIT.EDU> Cc: Linus Torvalds <torvalds@linux-foundation.org> LKML-Reference: <1240991249-27117-9-git-send-email-sam@ravnborg.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/vmlinux_64.lds.S')
-rw-r--r--arch/x86/kernel/vmlinux_64.lds.S59
1 files changed, 0 insertions, 59 deletions
diff --git a/arch/x86/kernel/vmlinux_64.lds.S b/arch/x86/kernel/vmlinux_64.lds.S
index 013aa0e1dd3a..0e8054e0c5c4 100644
--- a/arch/x86/kernel/vmlinux_64.lds.S
+++ b/arch/x86/kernel/vmlinux_64.lds.S
@@ -1,62 +1,3 @@
1 /* init_task */
2 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) {
3 . = ALIGN(THREAD_SIZE);
4 *(.data.init_task)
5 } :data.init
6
7 .smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) {
8 /* might get freed after init */
9 . = ALIGN(PAGE_SIZE);
10 __smp_alt_begin = .;
11 __smp_locks = .;
12 *(.smp_locks)
13 __smp_locks_end = .;
14 . = ALIGN(PAGE_SIZE);
15 __smp_alt_end = .;
16 }
17
18 /* Init code and data */
19 . = ALIGN(PAGE_SIZE);
20 __init_begin = .; /* paired with __init_end */
21 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) {
22 _sinittext = .;
23 INIT_TEXT
24 _einittext = .;
25 }
26
27 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) {
28 __initdata_begin = .;
29 INIT_DATA
30 __initdata_end = .;
31 }
32
33 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) {
34 . = ALIGN(16);
35 __setup_start = .;
36 *(.init.setup)
37 __setup_end = .;
38 }
39
40 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET) {
41 __initcall_start = .;
42 INITCALLS
43 __initcall_end = .;
44 }
45
46 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) {
47 __con_initcall_start = .;
48 *(.con_initcall.init)
49 __con_initcall_end = .;
50 }
51
52 .x86_cpu_dev.init : AT(ADDR(.x86_cpu_dev.init) - LOAD_OFFSET) {
53 __x86_cpu_dev_start = .;
54 *(.x86_cpu_dev.init)
55 __x86_cpu_dev_end = .;
56 }
57
58 SECURITY_INIT
59
60 . = ALIGN(8); 1 . = ALIGN(8);
61 .parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) { 2 .parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) {
62 __parainstructions = .; 3 __parainstructions = .;