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 */
33 *(.IA_64.unwind.exit.text)
34 *(.IA_64.unwind_info.exit.text)
37 v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */
38 phys_start = _start - LOAD_OFFSET;
46 .text : AT(ADDR(.text) - LOAD_OFFSET)
55 .text.head : AT(ADDR(.text.head) - LOAD_OFFSET)
57 .text2 : AT(ADDR(.text2) - LOAD_OFFSET)
60 .text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET)
67 NOTES :code :note /* put .notes in text and mark in PT_NOTE */
68 code_continues : {} :code /* switch back to regular program... */
72 __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET)
74 __start___ex_table = .;
76 __stop___ex_table = .;
81 __mca_table : AT(ADDR(__mca_table) - LOAD_OFFSET)
83 __start___mca_table = .;
85 __stop___mca_table = .;
88 .data.patch.phys_stack_reg : AT(ADDR(.data.patch.phys_stack_reg) - LOAD_OFFSET)
90 __start___phys_stack_reg_patchlist = .;
91 *(.data.patch.phys_stack_reg)
92 __end___phys_stack_reg_patchlist = .;
98 /* Unwind info & table: */
100 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET)
101 { *(.IA_64.unwind_info*) }
102 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET)
108 code_continues2 : {} : code
112 .opd : AT(ADDR(.opd) - LOAD_OFFSET)
115 /* Initialization code and data: */
117 . = ALIGN(PAGE_SIZE);
119 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET)
126 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET)
129 #ifdef CONFIG_BLK_DEV_INITRD
130 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET)
132 __initramfs_start = .;
139 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET)
145 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET)
147 __initcall_start = .;
152 .data.patch.vtop : AT(ADDR(.data.patch.vtop) - LOAD_OFFSET)
154 __start___vtop_patchlist = .;
156 __end___vtop_patchlist = .;
159 .data.patch.rse : AT(ADDR(.data.patch.rse) - LOAD_OFFSET)
161 __start___rse_patchlist = .;
163 __end___rse_patchlist = .;
166 .data.patch.mckinley_e9 : AT(ADDR(.data.patch.mckinley_e9) - LOAD_OFFSET)
168 __start___mckinley_e9_bundles = .;
169 *(.data.patch.mckinley_e9)
170 __end___mckinley_e9_bundles = .;
173 #if defined(CONFIG_PARAVIRT)
175 .paravirt_bundles : AT(ADDR(.paravirt_bundles) - LOAD_OFFSET)
177 __start_paravirt_bundles = .;
179 __stop_paravirt_bundles = .;
182 .paravirt_insts : AT(ADDR(.paravirt_insts) - LOAD_OFFSET)
184 __start_paravirt_insts = .;
186 __stop_paravirt_insts = .;
189 .paravirt_branches : AT(ADDR(.paravirt_branches) - LOAD_OFFSET)
191 __start_paravirt_branches = .;
192 *(.paravirt_branches)
193 __stop_paravirt_branches = .;
197 #if defined(CONFIG_IA64_GENERIC)
200 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
209 __con_initcall_start = .;
210 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
211 { *(.con_initcall.init) }
212 __con_initcall_end = .;
213 __security_initcall_start = .;
214 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET)
215 { *(.security_initcall.init) }
216 __security_initcall_end = .;
217 . = ALIGN(PAGE_SIZE);
220 /* The initial task and kernel stack */
221 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
222 { *(.data.init_task) }
224 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
225 { *(__special_page_section)
226 __start_gate_section = .;
228 __stop_gate_section = .;
230 . = ALIGN(PAGE_SIZE);
231 __xen_start_gate_section = .;
233 __xen_stop_gate_section = .;
236 . = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose
240 .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET)
241 { *(.data.read_mostly) }
243 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
244 { *(.data.cacheline_aligned) }
247 . = ALIGN(PERCPU_PAGE_SIZE);
248 PERCPU_VADDR(PERCPU_ADDR, :percpu)
249 __phys_per_cpu_start = __per_cpu_load;
250 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits
251 * into percpu page size
255 .data : AT(ADDR(.data) - LOAD_OFFSET)
258 . = ALIGN(PERCPU_PAGE_SIZE);
260 . = . + PERCPU_PAGE_SIZE; /* cpu0 per-cpu space */
268 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
269 .got : AT(ADDR(.got) - LOAD_OFFSET)
270 { *(.got.plt) *(.got) }
271 __gp = ADDR(.got) + 0x200000;
272 /* We want the small data sections together, so single-instruction offsets
273 can access them all, and initialized data all before uninitialized, so
274 we can shorten the on-disk segment size. */
275 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
276 { *(.sdata) *(.sdata1) *(.srdata) }
279 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
280 { *(.sbss) *(.scommon) }
281 .bss : AT(ADDR(.bss) - LOAD_OFFSET)
282 { *(.bss) *(COMMON) }
288 /* Stabs debugging sections. */
289 .stab 0 : { *(.stab) }
290 .stabstr 0 : { *(.stabstr) }
291 .stab.excl 0 : { *(.stab.excl) }
292 .stab.exclstr 0 : { *(.stab.exclstr) }
293 .stab.index 0 : { *(.stab.index) }
294 .stab.indexstr 0 : { *(.stab.indexstr) }
295 /* DWARF debug sections.
296 Symbols in the DWARF debugging sections are relative to the beginning
297 of the section so we begin them at 0. */
299 .debug 0 : { *(.debug) }
300 .line 0 : { *(.line) }
301 /* GNU DWARF 1 extensions */
302 .debug_srcinfo 0 : { *(.debug_srcinfo) }
303 .debug_sfnames 0 : { *(.debug_sfnames) }
304 /* DWARF 1.1 and DWARF 2 */
305 .debug_aranges 0 : { *(.debug_aranges) }
306 .debug_pubnames 0 : { *(.debug_pubnames) }
308 .debug_info 0 : { *(.debug_info) }
309 .debug_abbrev 0 : { *(.debug_abbrev) }
310 .debug_line 0 : { *(.debug_line) }
311 .debug_frame 0 : { *(.debug_frame) }
312 .debug_str 0 : { *(.debug_str) }
313 .debug_loc 0 : { *(.debug_loc) }
314 .debug_macinfo 0 : { *(.debug_macinfo) }
315 /* SGI/MIPS DWARF 2 extensions */
316 .debug_weaknames 0 : { *(.debug_weaknames) }
317 .debug_funcnames 0 : { *(.debug_funcnames) }
318 .debug_typenames 0 : { *(.debug_typenames) }
319 .debug_varnames 0 : { *(.debug_varnames) }
320 /* These must appear regardless of . */
321 /DISCARD/ : { *(.comment) }
322 /DISCARD/ : { *(.note) }