diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-04-29 03:47:23 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-29 04:20:32 -0400 |
commit | 1f6397bac55040cd520d9eaf299e155a7aa01d5f (patch) | |
tree | 991bccc160d0e5e1825da18b4ca899d1e5f7b14f /arch/x86/kernel/vmlinux_64.lds.S | |
parent | 448bc3ab0d03e77fee8e4264de0d001fc87bc164 (diff) |
x86, vmlinux.lds: unify data output sections
For 64 bit the following functional changes are introduced:
- .data.page_aligned has moved
- .data.cacheline_aligned has moved
- .data.read_mostly has moved
- ALIGN() moved out of output section for .data.cacheline_aligned
- ALIGN() moved out of output section for .data.page_aligned
Notice that 32 bit and 64 bit has different location of _edata.
.data_nosave is 32 bit only as 64 bit is special due to PERCPU.
[ Impact: 32-bit: cleanup, 64-bit: use 32-bit 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-7-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.S | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/x86/kernel/vmlinux_64.lds.S b/arch/x86/kernel/vmlinux_64.lds.S index 641f3f991a01..826270147b5a 100644 --- a/arch/x86/kernel/vmlinux_64.lds.S +++ b/arch/x86/kernel/vmlinux_64.lds.S | |||
@@ -1,26 +1,3 @@ | |||
1 | /* Align data segment to page size boundary */ | ||
2 | . = ALIGN(PAGE_SIZE); | ||
3 | /* Data */ | ||
4 | .data : AT(ADDR(.data) - LOAD_OFFSET) { | ||
5 | DATA_DATA | ||
6 | CONSTRUCTORS | ||
7 | /* End of data section */ | ||
8 | _edata = .; | ||
9 | } :data | ||
10 | |||
11 | |||
12 | .data.cacheline_aligned : | ||
13 | AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) { | ||
14 | . = ALIGN(PAGE_SIZE); | ||
15 | . = ALIGN(CONFIG_X86_L1_CACHE_BYTES); | ||
16 | *(.data.cacheline_aligned) | ||
17 | } | ||
18 | |||
19 | . = ALIGN(CONFIG_X86_INTERNODE_CACHE_BYTES); | ||
20 | .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) { | ||
21 | *(.data.read_mostly) | ||
22 | } | ||
23 | |||
24 | #define VSYSCALL_ADDR (-10*1024*1024) | 1 | #define VSYSCALL_ADDR (-10*1024*1024) |
25 | #define VSYSCALL_PHYS_ADDR ((LOADADDR(.data.read_mostly) + \ | 2 | #define VSYSCALL_PHYS_ADDR ((LOADADDR(.data.read_mostly) + \ |
26 | SIZEOF(.data.read_mostly) + 4095) & ~(4095)) | 3 | SIZEOF(.data.read_mostly) + 4095) & ~(4095)) |
@@ -95,11 +72,6 @@ | |||
95 | *(.data.init_task) | 72 | *(.data.init_task) |
96 | } :data.init | 73 | } :data.init |
97 | 74 | ||
98 | .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) { | ||
99 | . = ALIGN(PAGE_SIZE); | ||
100 | *(.data.page_aligned) | ||
101 | } | ||
102 | |||
103 | .smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) { | 75 | .smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) { |
104 | /* might get freed after init */ | 76 | /* might get freed after init */ |
105 | . = ALIGN(PAGE_SIZE); | 77 | . = ALIGN(PAGE_SIZE); |