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")
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)
110 .opd : AT(ADDR(.opd) - LOAD_OFFSET)
113 /* Initialization code and data: */
115 . = ALIGN(PAGE_SIZE);
117 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET)
124 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET)
127 #ifdef CONFIG_BLK_DEV_INITRD
128 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET)
130 __initramfs_start = .;
137 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET)
143 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET)
145 __initcall_start = .;
150 .data.patch.vtop : AT(ADDR(.data.patch.vtop) - LOAD_OFFSET)
152 __start___vtop_patchlist = .;
154 __end___vtop_patchlist = .;
157 .data.patch.mckinley_e9 : AT(ADDR(.data.patch.mckinley_e9) - LOAD_OFFSET)
159 __start___mckinley_e9_bundles = .;
160 *(.data.patch.mckinley_e9)
161 __end___mckinley_e9_bundles = .;
164 #if defined(CONFIG_IA64_GENERIC)
167 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
176 __con_initcall_start = .;
177 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
178 { *(.con_initcall.init) }
179 __con_initcall_end = .;
180 __security_initcall_start = .;
181 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET)
182 { *(.security_initcall.init) }
183 __security_initcall_end = .;
184 . = ALIGN(PAGE_SIZE);
187 /* The initial task and kernel stack */
188 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
189 { *(.data.init_task) }
191 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
192 { *(__special_page_section)
193 __start_gate_section = .;
195 __stop_gate_section = .;
197 . = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose
201 .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET)
202 { *(.data.read_mostly) }
204 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
205 { *(.data.cacheline_aligned) }
209 . = ALIGN(PERCPU_PAGE_SIZE);
210 __phys_per_cpu_start = .;
211 .data.percpu PERCPU_ADDR : AT(__phys_per_cpu_start - LOAD_OFFSET)
215 *(.data.percpu.shared_aligned)
218 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits
219 * into percpu page size
223 .data : AT(ADDR(.data) - LOAD_OFFSET)
231 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
232 .got : AT(ADDR(.got) - LOAD_OFFSET)
233 { *(.got.plt) *(.got) }
234 __gp = ADDR(.got) + 0x200000;
235 /* We want the small data sections together, so single-instruction offsets
236 can access them all, and initialized data all before uninitialized, so
237 we can shorten the on-disk segment size. */
238 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
239 { *(.sdata) *(.sdata1) *(.srdata) }
242 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
243 { *(.sbss) *(.scommon) }
244 .bss : AT(ADDR(.bss) - LOAD_OFFSET)
245 { *(.bss) *(COMMON) }
250 /* Stabs debugging sections. */
251 .stab 0 : { *(.stab) }
252 .stabstr 0 : { *(.stabstr) }
253 .stab.excl 0 : { *(.stab.excl) }
254 .stab.exclstr 0 : { *(.stab.exclstr) }
255 .stab.index 0 : { *(.stab.index) }
256 .stab.indexstr 0 : { *(.stab.indexstr) }
257 /* DWARF debug sections.
258 Symbols in the DWARF debugging sections are relative to the beginning
259 of the section so we begin them at 0. */
261 .debug 0 : { *(.debug) }
262 .line 0 : { *(.line) }
263 /* GNU DWARF 1 extensions */
264 .debug_srcinfo 0 : { *(.debug_srcinfo) }
265 .debug_sfnames 0 : { *(.debug_sfnames) }
266 /* DWARF 1.1 and DWARF 2 */
267 .debug_aranges 0 : { *(.debug_aranges) }
268 .debug_pubnames 0 : { *(.debug_pubnames) }
270 .debug_info 0 : { *(.debug_info) }
271 .debug_abbrev 0 : { *(.debug_abbrev) }
272 .debug_line 0 : { *(.debug_line) }
273 .debug_frame 0 : { *(.debug_frame) }
274 .debug_str 0 : { *(.debug_str) }
275 .debug_loc 0 : { *(.debug_loc) }
276 .debug_macinfo 0 : { *(.debug_macinfo) }
277 /* SGI/MIPS DWARF 2 extensions */
278 .debug_weaknames 0 : { *(.debug_weaknames) }
279 .debug_funcnames 0 : { *(.debug_funcnames) }
280 .debug_typenames 0 : { *(.debug_typenames) }
281 .debug_varnames 0 : { *(.debug_varnames) }
282 /* These must appear regardless of . */
283 /DISCARD/ : { *(.comment) }
284 /DISCARD/ : { *(.note) }