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 .text2 : AT(ADDR(.text2) - LOAD_OFFSET)
56 .text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET)
65 __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET)
67 __start___ex_table = .;
69 __stop___ex_table = .;
74 __mca_table : AT(ADDR(__mca_table) - LOAD_OFFSET)
76 __start___mca_table = .;
78 __stop___mca_table = .;
84 /* Unwind info & table: */
86 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET)
87 { *(.IA_64.unwind_info*) }
88 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET)
97 .opd : AT(ADDR(.opd) - LOAD_OFFSET)
100 /* Initialization code and data: */
102 . = ALIGN(PAGE_SIZE);
104 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET)
111 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET)
114 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET)
116 __initramfs_start = .;
122 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET)
128 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET)
130 __initcall_start = .;
135 .data.patch.vtop : AT(ADDR(.data.patch.vtop) - LOAD_OFFSET)
137 __start___vtop_patchlist = .;
139 __end___vtop_patchlist = .;
142 .data.patch.mckinley_e9 : AT(ADDR(.data.patch.mckinley_e9) - LOAD_OFFSET)
144 __start___mckinley_e9_bundles = .;
145 *(.data.patch.mckinley_e9)
146 __end___mckinley_e9_bundles = .;
149 #if defined(CONFIG_IA64_GENERIC)
152 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
160 __con_initcall_start = .;
161 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
162 { *(.con_initcall.init) }
163 __con_initcall_end = .;
164 __security_initcall_start = .;
165 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET)
166 { *(.security_initcall.init) }
167 __security_initcall_end = .;
168 . = ALIGN(PAGE_SIZE);
171 /* The initial task and kernel stack */
172 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
173 { *(.data.init_task) }
175 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
176 { *(__special_page_section)
177 __start_gate_section = .;
179 __stop_gate_section = .;
181 . = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose
185 .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET)
186 { *(.data.read_mostly) }
188 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
189 { *(.data.cacheline_aligned) }
193 . = ALIGN(PERCPU_PAGE_SIZE);
194 __phys_per_cpu_start = .;
195 .data.percpu PERCPU_ADDR : AT(__phys_per_cpu_start - LOAD_OFFSET)
201 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits
202 * into percpu page size
206 .data : AT(ADDR(.data) - LOAD_OFFSET)
207 { *(.data) *(.data1) *(.gnu.linkonce.d*) CONSTRUCTORS }
209 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
210 .got : AT(ADDR(.got) - LOAD_OFFSET)
211 { *(.got.plt) *(.got) }
212 __gp = ADDR(.got) + 0x200000;
213 /* We want the small data sections together, so single-instruction offsets
214 can access them all, and initialized data all before uninitialized, so
215 we can shorten the on-disk segment size. */
216 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
217 { *(.sdata) *(.sdata1) *(.srdata) }
220 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
221 { *(.sbss) *(.scommon) }
222 .bss : AT(ADDR(.bss) - LOAD_OFFSET)
223 { *(.bss) *(COMMON) }
228 /* Stabs debugging sections. */
229 .stab 0 : { *(.stab) }
230 .stabstr 0 : { *(.stabstr) }
231 .stab.excl 0 : { *(.stab.excl) }
232 .stab.exclstr 0 : { *(.stab.exclstr) }
233 .stab.index 0 : { *(.stab.index) }
234 .stab.indexstr 0 : { *(.stab.indexstr) }
235 /* DWARF debug sections.
236 Symbols in the DWARF debugging sections are relative to the beginning
237 of the section so we begin them at 0. */
239 .debug 0 : { *(.debug) }
240 .line 0 : { *(.line) }
241 /* GNU DWARF 1 extensions */
242 .debug_srcinfo 0 : { *(.debug_srcinfo) }
243 .debug_sfnames 0 : { *(.debug_sfnames) }
244 /* DWARF 1.1 and DWARF 2 */
245 .debug_aranges 0 : { *(.debug_aranges) }
246 .debug_pubnames 0 : { *(.debug_pubnames) }
248 .debug_info 0 : { *(.debug_info) }
249 .debug_abbrev 0 : { *(.debug_abbrev) }
250 .debug_line 0 : { *(.debug_line) }
251 .debug_frame 0 : { *(.debug_frame) }
252 .debug_str 0 : { *(.debug_str) }
253 .debug_loc 0 : { *(.debug_loc) }
254 .debug_macinfo 0 : { *(.debug_macinfo) }
255 /* SGI/MIPS DWARF 2 extensions */
256 .debug_weaknames 0 : { *(.debug_weaknames) }
257 .debug_funcnames 0 : { *(.debug_funcnames) }
258 .debug_typenames 0 : { *(.debug_typenames) }
259 .debug_varnames 0 : { *(.debug_varnames) }
260 /* These must appear regardless of . */
261 /* Discard them for now since Intel SoftSDV cannot handle them.
262 .comment 0 : { *(.comment) }
263 .note 0 : { *(.note) }
265 /DISCARD/ : { *(.comment) }
266 /DISCARD/ : { *(.note) }