3 #include <asm/ptrace.h>
4 #include <asm/system.h>
5 #include <asm/pgtable.h>
7 #define LOAD_OFFSET (KERNEL_START - KERNEL_TR_PAGE_SIZE)
8 #include <asm-generic/vmlinux.lds.h>
11 VMLINUX_SYMBOL(__start_ivt_text) = .; \
13 VMLINUX_SYMBOL(__end_ivt_text) = .;
15 OUTPUT_FORMAT("elf64-ia64-little")
24 unwind 0x70000001; /* PT_IA_64_UNWIND, but ld doesn't match the name */
28 /* 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.mckinley_e9 : AT(ADDR(.data.patch.mckinley_e9) - LOAD_OFFSET)
161 __start___mckinley_e9_bundles = .;
162 *(.data.patch.mckinley_e9)
163 __end___mckinley_e9_bundles = .;
166 #if defined(CONFIG_IA64_GENERIC)
169 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
178 __con_initcall_start = .;
179 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
180 { *(.con_initcall.init) }
181 __con_initcall_end = .;
182 __security_initcall_start = .;
183 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET)
184 { *(.security_initcall.init) }
185 __security_initcall_end = .;
186 . = ALIGN(PAGE_SIZE);
189 /* The initial task and kernel stack */
190 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
191 { *(.data.init_task) }
193 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
194 { *(__special_page_section)
195 __start_gate_section = .;
197 __stop_gate_section = .;
199 . = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose
203 .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET)
204 { *(.data.read_mostly) }
206 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
207 { *(.data.cacheline_aligned) }
211 . = ALIGN(PERCPU_PAGE_SIZE);
212 __phys_per_cpu_start = .;
213 .data.percpu PERCPU_ADDR : AT(__phys_per_cpu_start - LOAD_OFFSET)
217 *(.data.percpu.shared_aligned)
220 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits
221 * into percpu page size
225 .data : AT(ADDR(.data) - LOAD_OFFSET)
233 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
234 .got : AT(ADDR(.got) - LOAD_OFFSET)
235 { *(.got.plt) *(.got) }
236 __gp = ADDR(.got) + 0x200000;
237 /* We want the small data sections together, so single-instruction offsets
238 can access them all, and initialized data all before uninitialized, so
239 we can shorten the on-disk segment size. */
240 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
241 { *(.sdata) *(.sdata1) *(.srdata) }
244 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
245 { *(.sbss) *(.scommon) }
246 .bss : AT(ADDR(.bss) - LOAD_OFFSET)
247 { *(.bss) *(COMMON) }
253 /* Stabs debugging sections. */
254 .stab 0 : { *(.stab) }
255 .stabstr 0 : { *(.stabstr) }
256 .stab.excl 0 : { *(.stab.excl) }
257 .stab.exclstr 0 : { *(.stab.exclstr) }
258 .stab.index 0 : { *(.stab.index) }
259 .stab.indexstr 0 : { *(.stab.indexstr) }
260 /* DWARF debug sections.
261 Symbols in the DWARF debugging sections are relative to the beginning
262 of the section so we begin them at 0. */
264 .debug 0 : { *(.debug) }
265 .line 0 : { *(.line) }
266 /* GNU DWARF 1 extensions */
267 .debug_srcinfo 0 : { *(.debug_srcinfo) }
268 .debug_sfnames 0 : { *(.debug_sfnames) }
269 /* DWARF 1.1 and DWARF 2 */
270 .debug_aranges 0 : { *(.debug_aranges) }
271 .debug_pubnames 0 : { *(.debug_pubnames) }
273 .debug_info 0 : { *(.debug_info) }
274 .debug_abbrev 0 : { *(.debug_abbrev) }
275 .debug_line 0 : { *(.debug_line) }
276 .debug_frame 0 : { *(.debug_frame) }
277 .debug_str 0 : { *(.debug_str) }
278 .debug_loc 0 : { *(.debug_loc) }
279 .debug_macinfo 0 : { *(.debug_macinfo) }
280 /* SGI/MIPS DWARF 2 extensions */
281 .debug_weaknames 0 : { *(.debug_weaknames) }
282 .debug_funcnames 0 : { *(.debug_funcnames) }
283 .debug_typenames 0 : { *(.debug_typenames) }
284 .debug_varnames 0 : { *(.debug_varnames) }
285 /* These must appear regardless of . */
286 /DISCARD/ : { *(.comment) }
287 /DISCARD/ : { *(.note) }