diff options
Diffstat (limited to 'arch/s390/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/s390/kernel/vmlinux.lds.S | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index f6b16aec32e7..849120e3e28a 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S | |||
@@ -2,6 +2,7 @@ | |||
2 | * Written by Martin Schwidefsky (schwidefsky@de.ibm.com) | 2 | * Written by Martin Schwidefsky (schwidefsky@de.ibm.com) |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #include <asm/page.h> | ||
5 | #include <asm-generic/vmlinux.lds.h> | 6 | #include <asm-generic/vmlinux.lds.h> |
6 | 7 | ||
7 | #ifndef CONFIG_64BIT | 8 | #ifndef CONFIG_64BIT |
@@ -35,10 +36,10 @@ SECTIONS | |||
35 | RODATA | 36 | RODATA |
36 | 37 | ||
37 | #ifdef CONFIG_SHARED_KERNEL | 38 | #ifdef CONFIG_SHARED_KERNEL |
38 | . = ALIGN(1048576); /* VM shared segments are 1MB aligned */ | 39 | . = ALIGN(0x100000); /* VM shared segments are 1MB aligned */ |
39 | #endif | 40 | #endif |
40 | 41 | ||
41 | . = ALIGN(4096); | 42 | . = ALIGN(PAGE_SIZE); |
42 | _eshared = .; /* End of shareable data */ | 43 | _eshared = .; /* End of shareable data */ |
43 | 44 | ||
44 | . = ALIGN(16); /* Exception table */ | 45 | . = ALIGN(16); /* Exception table */ |
@@ -56,37 +57,37 @@ SECTIONS | |||
56 | CONSTRUCTORS | 57 | CONSTRUCTORS |
57 | } | 58 | } |
58 | 59 | ||
59 | . = ALIGN(4096); | 60 | . = ALIGN(PAGE_SIZE); |
60 | .data_nosave : { | 61 | .data_nosave : { |
61 | __nosave_begin = .; | 62 | __nosave_begin = .; |
62 | *(.data.nosave) | 63 | *(.data.nosave) |
63 | } | 64 | } |
64 | . = ALIGN(4096); | 65 | . = ALIGN(PAGE_SIZE); |
65 | __nosave_end = .; | 66 | __nosave_end = .; |
66 | 67 | ||
67 | . = ALIGN(4096); | 68 | . = ALIGN(PAGE_SIZE); |
68 | .data.page_aligned : { | 69 | .data.page_aligned : { |
69 | *(.data.idt) | 70 | *(.data.idt) |
70 | } | 71 | } |
71 | 72 | ||
72 | . = ALIGN(256); | 73 | . = ALIGN(0x100); |
73 | .data.cacheline_aligned : { | 74 | .data.cacheline_aligned : { |
74 | *(.data.cacheline_aligned) | 75 | *(.data.cacheline_aligned) |
75 | } | 76 | } |
76 | 77 | ||
77 | . = ALIGN(256); | 78 | . = ALIGN(0x100); |
78 | .data.read_mostly : { | 79 | .data.read_mostly : { |
79 | *(.data.read_mostly) | 80 | *(.data.read_mostly) |
80 | } | 81 | } |
81 | _edata = .; /* End of data section */ | 82 | _edata = .; /* End of data section */ |
82 | 83 | ||
83 | . = ALIGN(8192); /* init_task */ | 84 | . = ALIGN(2 * PAGE_SIZE); /* init_task */ |
84 | .data.init_task : { | 85 | .data.init_task : { |
85 | *(.data.init_task) | 86 | *(.data.init_task) |
86 | } | 87 | } |
87 | 88 | ||
88 | /* will be freed after init */ | 89 | /* will be freed after init */ |
89 | . = ALIGN(4096); /* Init code and data */ | 90 | . = ALIGN(PAGE_SIZE); /* Init code and data */ |
90 | __init_begin = .; | 91 | __init_begin = .; |
91 | .init.text : { | 92 | .init.text : { |
92 | _sinittext = .; | 93 | _sinittext = .; |
@@ -104,7 +105,7 @@ SECTIONS | |||
104 | .init.data : { | 105 | .init.data : { |
105 | *(.init.data) | 106 | *(.init.data) |
106 | } | 107 | } |
107 | . = ALIGN(256); | 108 | . = ALIGN(0x100); |
108 | .init.setup : { | 109 | .init.setup : { |
109 | __setup_start = .; | 110 | __setup_start = .; |
110 | *(.init.setup) | 111 | *(.init.setup) |
@@ -124,7 +125,7 @@ SECTIONS | |||
124 | SECURITY_INIT | 125 | SECURITY_INIT |
125 | 126 | ||
126 | #ifdef CONFIG_BLK_DEV_INITRD | 127 | #ifdef CONFIG_BLK_DEV_INITRD |
127 | . = ALIGN(256); | 128 | . = ALIGN(0x100); |
128 | .init.ramfs : { | 129 | .init.ramfs : { |
129 | __initramfs_start = .; | 130 | __initramfs_start = .; |
130 | *(.init.ramfs) | 131 | *(.init.ramfs) |
@@ -133,8 +134,8 @@ SECTIONS | |||
133 | } | 134 | } |
134 | #endif | 135 | #endif |
135 | 136 | ||
136 | PERCPU(4096) | 137 | PERCPU(PAGE_SIZE) |
137 | . = ALIGN(4096); | 138 | . = ALIGN(PAGE_SIZE); |
138 | __init_end = .; /* freed after init ends here */ | 139 | __init_end = .; /* freed after init ends here */ |
139 | 140 | ||
140 | /* BSS */ | 141 | /* BSS */ |