vmlinux.lds.S (292dd876ee765c478b27c93cc51e93a558ed58bf) vmlinux.lds.S (2fd83038160531245099c3c5b3511fa4b80765eb)
1/* Kernel link layout for various "sections"
2 *
3 * Copyright (C) 1999-2003 Matthew Wilcox <willy at parisc-linux.org>
4 * Copyright (C) 2000-2003 Paul Bame <bame at parisc-linux.org>
5 * Copyright (C) 2000 John Marvin <jsm at parisc-linux.org>
6 * Copyright (C) 2000 Michael Ang <mang with subcarrier.org>
7 * Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org>
8 * Copyright (C) 2003 James Bottomley <jejb with parisc-linux.org>
1/* Kernel link layout for various "sections"
2 *
3 * Copyright (C) 1999-2003 Matthew Wilcox <willy at parisc-linux.org>
4 * Copyright (C) 2000-2003 Paul Bame <bame at parisc-linux.org>
5 * Copyright (C) 2000 John Marvin <jsm at parisc-linux.org>
6 * Copyright (C) 2000 Michael Ang <mang with subcarrier.org>
7 * Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org>
8 * Copyright (C) 2003 James Bottomley <jejb with parisc-linux.org>
9 * Copyright (C) 2006 Helge Deller <deller@gmx.de>
9 *
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,

--- 5 unchanged lines hidden (view full) ---

22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */
25#include <linux/config.h>
26#include <asm-generic/vmlinux.lds.h>
27/* needed for the processor specific cache alignment size */
28#include <asm/cache.h>
29#include <asm/page.h>
10 *
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,

--- 5 unchanged lines hidden (view full) ---

23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 */
26#include <linux/config.h>
27#include <asm-generic/vmlinux.lds.h>
28/* needed for the processor specific cache alignment size */
29#include <asm/cache.h>
30#include <asm/page.h>
31#include <asm/asm-offsets.h>
30
31/* ld script to make hppa Linux kernel */
32#ifndef CONFIG_64BIT
33OUTPUT_FORMAT("elf32-hppa-linux")
34OUTPUT_ARCH(hppa)
35#else
36OUTPUT_FORMAT("elf64-hppa-linux")
37OUTPUT_ARCH(hppa:hppa2.0w)

--- 25 unchanged lines hidden (view full) ---

63 *(.gnu.warning)
64 } = 0
65
66 _etext = .; /* End of text section */
67
68 RODATA
69
70 /* writeable */
32
33/* ld script to make hppa Linux kernel */
34#ifndef CONFIG_64BIT
35OUTPUT_FORMAT("elf32-hppa-linux")
36OUTPUT_ARCH(hppa)
37#else
38OUTPUT_FORMAT("elf64-hppa-linux")
39OUTPUT_ARCH(hppa:hppa2.0w)

--- 25 unchanged lines hidden (view full) ---

65 *(.gnu.warning)
66 } = 0
67
68 _etext = .; /* End of text section */
69
70 RODATA
71
72 /* writeable */
71 . = ALIGN(4096); /* Make sure this is page aligned so
73 . = ALIGN(ASM_PAGE_SIZE); /* Make sure this is page aligned so
72 that we can properly leave these
73 as writable */
74 data_start = .;
75
76 . = ALIGN(16); /* Exception table */
77 __start___ex_table = .;
78 __ex_table : { *(__ex_table) }
79 __stop___ex_table = .;
80
81 __start___unwind = .; /* unwind info */
82 .PARISC.unwind : { *(.PARISC.unwind) }
83 __stop___unwind = .;
74 that we can properly leave these
75 as writable */
76 data_start = .;
77
78 . = ALIGN(16); /* Exception table */
79 __start___ex_table = .;
80 __ex_table : { *(__ex_table) }
81 __stop___ex_table = .;
82
83 __start___unwind = .; /* unwind info */
84 .PARISC.unwind : { *(.PARISC.unwind) }
85 __stop___unwind = .;
84
86
87 /* rarely changed data like cpu maps */
88 . = ALIGN(16);
89 .data.read_mostly : { *(.data.read_mostly) }
90
91 . = ALIGN(L1_CACHE_BYTES);
85 .data : { /* Data */
86 *(.data)
92 .data : { /* Data */
93 *(.data)
87 *(.data.vm0.pmd)
88 *(.data.vm0.pgd)
89 *(.data.vm0.pte)
90 CONSTRUCTORS
91 }
92
94 CONSTRUCTORS
95 }
96
93 . = ALIGN(4096);
94 /* nosave data is really only used for software suspend...it's here
95 * just in case we ever implement it */
96 __nosave_begin = .;
97 .data_nosave : { *(.data.nosave) }
98 . = ALIGN(4096);
99 __nosave_end = .;
100
101 . = ALIGN(L1_CACHE_BYTES);
102 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
103
104 /* PA-RISC locks requires 16-byte alignment */
105 . = ALIGN(16);
106 .data.lock_aligned : { *(.data.lock_aligned) }
107
97 . = ALIGN(L1_CACHE_BYTES);
98 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
99
100 /* PA-RISC locks requires 16-byte alignment */
101 . = ALIGN(16);
102 .data.lock_aligned : { *(.data.lock_aligned) }
103
108 /* rarely changed data like cpu maps */
109 . = ALIGN(16);
110 .data.read_mostly : { *(.data.read_mostly) }
104 . = ALIGN(ASM_PAGE_SIZE);
105 /* nosave data is really only used for software suspend...it's here
106 * just in case we ever implement it */
107 __nosave_begin = .;
108 .data_nosave : { *(.data.nosave) }
109 . = ALIGN(ASM_PAGE_SIZE);
110 __nosave_end = .;
111
112 _edata = .; /* End of data section */
113
111
112 _edata = .; /* End of data section */
113
114 __bss_start = .; /* BSS */
115 /* page table entries need to be PAGE_SIZE aligned */
116 . = ALIGN(ASM_PAGE_SIZE);
117 .data.vmpages : {
118 *(.data.vm0.pmd)
119 *(.data.vm0.pgd)
120 *(.data.vm0.pte)
121 }
122 .bss : { *(.bss) *(COMMON) }
123 __bss_stop = .;
124
125
126 /* assembler code expects init_task to be 16k aligned */
114 . = ALIGN(16384); /* init_task */
115 .data.init_task : { *(.data.init_task) }
116
117 /* The interrupt stack is currently partially coded, but not yet
118 * implemented */
119 . = ALIGN(16384);
120 init_istack : { *(init_istack) }
121
122#ifdef CONFIG_64BIT
123 . = ALIGN(16); /* Linkage tables */
124 .opd : { *(.opd) } PROVIDE (__gp = .);
125 .plt : { *(.plt) }
126 .dlt : { *(.dlt) }
127#endif
128
127 . = ALIGN(16384); /* init_task */
128 .data.init_task : { *(.data.init_task) }
129
130 /* The interrupt stack is currently partially coded, but not yet
131 * implemented */
132 . = ALIGN(16384);
133 init_istack : { *(init_istack) }
134
135#ifdef CONFIG_64BIT
136 . = ALIGN(16); /* Linkage tables */
137 .opd : { *(.opd) } PROVIDE (__gp = .);
138 .plt : { *(.plt) }
139 .dlt : { *(.dlt) }
140#endif
141
142 /* reserve space for interrupt stack by aligning __init* to 16k */
129 . = ALIGN(16384);
130 __init_begin = .;
131 .init.text : {
132 _sinittext = .;
133 *(.init.text)
134 _einittext = .;
135 }
136 .init.data : { *(.init.data) }

--- 24 unchanged lines hidden (view full) ---

161 __alt_instructions = .;
162 .altinstructions : { *(.altinstructions) }
163 __alt_instructions_end = .;
164 .altinstr_replacement : { *(.altinstr_replacement) }
165 /* .exit.text is discard at runtime, not link time, to deal with references
166 from .altinstructions and .eh_frame */
167 .exit.text : { *(.exit.text) }
168 .exit.data : { *(.exit.data) }
143 . = ALIGN(16384);
144 __init_begin = .;
145 .init.text : {
146 _sinittext = .;
147 *(.init.text)
148 _einittext = .;
149 }
150 .init.data : { *(.init.data) }

--- 24 unchanged lines hidden (view full) ---

175 __alt_instructions = .;
176 .altinstructions : { *(.altinstructions) }
177 __alt_instructions_end = .;
178 .altinstr_replacement : { *(.altinstr_replacement) }
179 /* .exit.text is discard at runtime, not link time, to deal with references
180 from .altinstructions and .eh_frame */
181 .exit.text : { *(.exit.text) }
182 .exit.data : { *(.exit.data) }
169 . = ALIGN(4096);
183 . = ALIGN(ASM_PAGE_SIZE);
170 __initramfs_start = .;
171 .init.ramfs : { *(.init.ramfs) }
172 __initramfs_end = .;
173 . = ALIGN(32);
174 __per_cpu_start = .;
175 .data.percpu : { *(.data.percpu) }
176 __per_cpu_end = .;
184 __initramfs_start = .;
185 .init.ramfs : { *(.init.ramfs) }
186 __initramfs_end = .;
187 . = ALIGN(32);
188 __per_cpu_start = .;
189 .data.percpu : { *(.data.percpu) }
190 __per_cpu_end = .;
177 . = ALIGN(4096);
191 . = ALIGN(ASM_PAGE_SIZE);
178 __init_end = .;
179 /* freed after init ends here */
180
192 __init_end = .;
193 /* freed after init ends here */
194
181 __bss_start = .; /* BSS */
182 .bss : { *(.bss) *(COMMON) }
183 __bss_stop = .;
184
185 _end = . ;
186
187 /* Sections to be discarded */
188 /DISCARD/ : {
189 *(.exitcall.exit)
190#ifdef CONFIG_64BIT
191 /* temporary hack until binutils is fixed to not emit these
192 for static binaries */

--- 12 unchanged lines hidden ---
195 _end = . ;
196
197 /* Sections to be discarded */
198 /DISCARD/ : {
199 *(.exitcall.exit)
200#ifdef CONFIG_64BIT
201 /* temporary hack until binutils is fixed to not emit these
202 for static binaries */

--- 12 unchanged lines hidden ---