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")
26 /* Sections to be discarded */
31 *(.IA_64.unwind.exit.text)
32 *(.IA_64.unwind_info.exit.text)
35 v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */
36 phys_start = _start - LOAD_OFFSET;
44 .text : AT(ADDR(.text) - LOAD_OFFSET)
53 .text.head : AT(ADDR(.text.head) - LOAD_OFFSET)
55 .text2 : AT(ADDR(.text2) - LOAD_OFFSET)
58 .text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET)
67 __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET)
69 __start___ex_table = .;
71 __stop___ex_table = .;
76 __mca_table : AT(ADDR(__mca_table) - LOAD_OFFSET)
78 __start___mca_table = .;
80 __stop___mca_table = .;
83 .data.patch.phys_stack_reg : AT(ADDR(.data.patch.phys_stack_reg) - LOAD_OFFSET)
85 __start___phys_stack_reg_patchlist = .;
86 *(.data.patch.phys_stack_reg)
87 __end___phys_stack_reg_patchlist = .;
93 /* Unwind info & table: */
95 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET)
96 { *(.IA_64.unwind_info*) }
97 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET)
106 .opd : AT(ADDR(.opd) - LOAD_OFFSET)
109 /* Initialization code and data: */
111 . = ALIGN(PAGE_SIZE);
113 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET)
120 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET)
123 #ifdef CONFIG_BLK_DEV_INITRD
124 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET)
126 __initramfs_start = .;
133 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET)
139 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET)
141 __initcall_start = .;
146 .data.patch.vtop : AT(ADDR(.data.patch.vtop) - LOAD_OFFSET)
148 __start___vtop_patchlist = .;
150 __end___vtop_patchlist = .;
153 .data.patch.mckinley_e9 : AT(ADDR(.data.patch.mckinley_e9) - LOAD_OFFSET)
155 __start___mckinley_e9_bundles = .;
156 *(.data.patch.mckinley_e9)
157 __end___mckinley_e9_bundles = .;
160 #if defined(CONFIG_IA64_GENERIC)
163 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
172 __con_initcall_start = .;
173 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
174 { *(.con_initcall.init) }
175 __con_initcall_end = .;
176 __security_initcall_start = .;
177 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET)
178 { *(.security_initcall.init) }
179 __security_initcall_end = .;
180 . = ALIGN(PAGE_SIZE);
183 /* The initial task and kernel stack */
184 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
185 { *(.data.init_task) }
187 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
188 { *(__special_page_section)
189 __start_gate_section = .;
191 __stop_gate_section = .;
193 . = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose
197 .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET)
198 { *(.data.read_mostly) }
200 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
201 { *(.data.cacheline_aligned) }
205 . = ALIGN(PERCPU_PAGE_SIZE);
206 __phys_per_cpu_start = .;
207 .data.percpu PERCPU_ADDR : AT(__phys_per_cpu_start - LOAD_OFFSET)
211 *(.data.percpu.shared_aligned)
214 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits
215 * into percpu page size
219 .data : AT(ADDR(.data) - LOAD_OFFSET)
227 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
228 .got : AT(ADDR(.got) - LOAD_OFFSET)
229 { *(.got.plt) *(.got) }
230 __gp = ADDR(.got) + 0x200000;
231 /* We want the small data sections together, so single-instruction offsets
232 can access them all, and initialized data all before uninitialized, so
233 we can shorten the on-disk segment size. */
234 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
235 { *(.sdata) *(.sdata1) *(.srdata) }
238 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
239 { *(.sbss) *(.scommon) }
240 .bss : AT(ADDR(.bss) - LOAD_OFFSET)
241 { *(.bss) *(COMMON) }
246 /* Stabs debugging sections. */
247 .stab 0 : { *(.stab) }
248 .stabstr 0 : { *(.stabstr) }
249 .stab.excl 0 : { *(.stab.excl) }
250 .stab.exclstr 0 : { *(.stab.exclstr) }
251 .stab.index 0 : { *(.stab.index) }
252 .stab.indexstr 0 : { *(.stab.indexstr) }
253 /* DWARF debug sections.
254 Symbols in the DWARF debugging sections are relative to the beginning
255 of the section so we begin them at 0. */
257 .debug 0 : { *(.debug) }
258 .line 0 : { *(.line) }
259 /* GNU DWARF 1 extensions */
260 .debug_srcinfo 0 : { *(.debug_srcinfo) }
261 .debug_sfnames 0 : { *(.debug_sfnames) }
262 /* DWARF 1.1 and DWARF 2 */
263 .debug_aranges 0 : { *(.debug_aranges) }
264 .debug_pubnames 0 : { *(.debug_pubnames) }
266 .debug_info 0 : { *(.debug_info) }
267 .debug_abbrev 0 : { *(.debug_abbrev) }
268 .debug_line 0 : { *(.debug_line) }
269 .debug_frame 0 : { *(.debug_frame) }
270 .debug_str 0 : { *(.debug_str) }
271 .debug_loc 0 : { *(.debug_loc) }
272 .debug_macinfo 0 : { *(.debug_macinfo) }
273 /* SGI/MIPS DWARF 2 extensions */
274 .debug_weaknames 0 : { *(.debug_weaknames) }
275 .debug_funcnames 0 : { *(.debug_funcnames) }
276 .debug_typenames 0 : { *(.debug_typenames) }
277 .debug_varnames 0 : { *(.debug_varnames) }
278 /* These must appear regardless of . */
279 /* Discard them for now since Intel SoftSDV cannot handle them.
280 .comment 0 : { *(.comment) }
281 .note 0 : { *(.note) }
283 /DISCARD/ : { *(.comment) }
284 /DISCARD/ : { *(.note) }