3 #include <asm/ptrace.h>
4 #include <asm/system.h>
5 #include <asm/pgtable.h>
7 #include <asm-generic/vmlinux.lds.h>
10 VMLINUX_SYMBOL(__start_ivt_text) = .; \
12 VMLINUX_SYMBOL(__end_ivt_text) = .;
14 OUTPUT_FORMAT("elf64-ia64-little")
23 unwind 0x70000001; /* PT_IA_64_UNWIND, but ld doesn't match the name */
27 /* Sections to be discarded */
32 *(.IA_64.unwind.exit.text)
33 *(.IA_64.unwind_info.exit.text)
36 v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */
37 phys_start = _start - LOAD_OFFSET;
45 .text : AT(ADDR(.text) - LOAD_OFFSET)
54 .text.head : AT(ADDR(.text.head) - LOAD_OFFSET)
56 .text2 : AT(ADDR(.text2) - LOAD_OFFSET)
59 .text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET)
66 NOTES :code :note /* put .notes in text and mark in PT_NOTE */
67 code_continues : {} :code /* switch back to regular program... */
71 __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET)
73 __start___ex_table = .;
75 __stop___ex_table = .;
80 __mca_table : AT(ADDR(__mca_table) - LOAD_OFFSET)
82 __start___mca_table = .;
84 __stop___mca_table = .;
87 .data.patch.phys_stack_reg : AT(ADDR(.data.patch.phys_stack_reg) - LOAD_OFFSET)
89 __start___phys_stack_reg_patchlist = .;
90 *(.data.patch.phys_stack_reg)
91 __end___phys_stack_reg_patchlist = .;
97 /* Unwind info & table: */
99 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET)
100 { *(.IA_64.unwind_info*) }
101 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET)
107 code_continues2 : {} : code
111 .opd : AT(ADDR(.opd) - LOAD_OFFSET)
114 /* Initialization code and data: */
116 . = ALIGN(PAGE_SIZE);
118 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET)
125 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET)
128 #ifdef CONFIG_BLK_DEV_INITRD
129 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET)
131 __initramfs_start = .;
138 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET)
144 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET)
146 __initcall_start = .;
151 .data.patch.vtop : AT(ADDR(.data.patch.vtop) - LOAD_OFFSET)
153 __start___vtop_patchlist = .;
155 __end___vtop_patchlist = .;
158 .data.patch.rse : AT(ADDR(.data.patch.rse) - LOAD_OFFSET)
160 __start___rse_patchlist = .;
162 __end___rse_patchlist = .;
165 .data.patch.mckinley_e9 : AT(ADDR(.data.patch.mckinley_e9) - LOAD_OFFSET)
167 __start___mckinley_e9_bundles = .;
168 *(.data.patch.mckinley_e9)
169 __end___mckinley_e9_bundles = .;
172 #if defined(CONFIG_PARAVIRT)
174 .paravirt_bundles : AT(ADDR(.paravirt_bundles) - LOAD_OFFSET)
176 __start_paravirt_bundles = .;
178 __stop_paravirt_bundles = .;
181 .paravirt_insts : AT(ADDR(.paravirt_insts) - LOAD_OFFSET)
183 __start_paravirt_insts = .;
185 __stop_paravirt_insts = .;
188 .paravirt_branches : AT(ADDR(.paravirt_branches) - LOAD_OFFSET)
190 __start_paravirt_branches = .;
191 *(.paravirt_branches)
192 __stop_paravirt_branches = .;
196 #if defined(CONFIG_IA64_GENERIC)
199 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
208 __con_initcall_start = .;
209 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
210 { *(.con_initcall.init) }
211 __con_initcall_end = .;
212 __security_initcall_start = .;
213 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET)
214 { *(.security_initcall.init) }
215 __security_initcall_end = .;
216 . = ALIGN(PAGE_SIZE);
219 /* The initial task and kernel stack */
220 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
221 { *(.data.init_task) }
223 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
224 { *(__special_page_section)
225 __start_gate_section = .;
227 __stop_gate_section = .;
229 . = ALIGN(PAGE_SIZE);
230 __xen_start_gate_section = .;
232 __xen_stop_gate_section = .;
235 . = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose
239 .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET)
240 { *(.data.read_mostly) }
242 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
243 { *(.data.cacheline_aligned) }
246 . = ALIGN(PERCPU_PAGE_SIZE);
247 PERCPU_VADDR(PERCPU_ADDR, :percpu)
248 __phys_per_cpu_start = __per_cpu_load;
249 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits
250 * into percpu page size
254 .data : AT(ADDR(.data) - LOAD_OFFSET)
257 . = ALIGN(PERCPU_PAGE_SIZE);
259 . = . + PERCPU_PAGE_SIZE; /* cpu0 per-cpu space */
267 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
268 .got : AT(ADDR(.got) - LOAD_OFFSET)
269 { *(.got.plt) *(.got) }
270 __gp = ADDR(.got) + 0x200000;
271 /* We want the small data sections together, so single-instruction offsets
272 can access them all, and initialized data all before uninitialized, so
273 we can shorten the on-disk segment size. */
274 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
275 { *(.sdata) *(.sdata1) *(.srdata) }
278 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
279 { *(.sbss) *(.scommon) }
280 .bss : AT(ADDR(.bss) - LOAD_OFFSET)
281 { *(.bss) *(COMMON) }
287 /* Stabs debugging sections. */
288 .stab 0 : { *(.stab) }
289 .stabstr 0 : { *(.stabstr) }
290 .stab.excl 0 : { *(.stab.excl) }
291 .stab.exclstr 0 : { *(.stab.exclstr) }
292 .stab.index 0 : { *(.stab.index) }
293 .stab.indexstr 0 : { *(.stab.indexstr) }
294 /* DWARF debug sections.
295 Symbols in the DWARF debugging sections are relative to the beginning
296 of the section so we begin them at 0. */
298 .debug 0 : { *(.debug) }
299 .line 0 : { *(.line) }
300 /* GNU DWARF 1 extensions */
301 .debug_srcinfo 0 : { *(.debug_srcinfo) }
302 .debug_sfnames 0 : { *(.debug_sfnames) }
303 /* DWARF 1.1 and DWARF 2 */
304 .debug_aranges 0 : { *(.debug_aranges) }
305 .debug_pubnames 0 : { *(.debug_pubnames) }
307 .debug_info 0 : { *(.debug_info) }
308 .debug_abbrev 0 : { *(.debug_abbrev) }
309 .debug_line 0 : { *(.debug_line) }
310 .debug_frame 0 : { *(.debug_frame) }
311 .debug_str 0 : { *(.debug_str) }
312 .debug_loc 0 : { *(.debug_loc) }
313 .debug_macinfo 0 : { *(.debug_macinfo) }
314 /* SGI/MIPS DWARF 2 extensions */
315 .debug_weaknames 0 : { *(.debug_weaknames) }
316 .debug_funcnames 0 : { *(.debug_funcnames) }
317 .debug_typenames 0 : { *(.debug_typenames) }
318 .debug_varnames 0 : { *(.debug_varnames) }
319 /* These must appear regardless of . */
320 /DISCARD/ : { *(.comment) }
321 /DISCARD/ : { *(.note) }