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 = .;
81 .data.patch.phys_stack_reg : AT(ADDR(.data.patch.phys_stack_reg) - LOAD_OFFSET)
83 __start___phys_stack_reg_patchlist = .;
84 *(.data.patch.phys_stack_reg)
85 __end___phys_stack_reg_patchlist = .;
91 /* Unwind info & table: */
93 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET)
94 { *(.IA_64.unwind_info*) }
95 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET)
104 .opd : AT(ADDR(.opd) - LOAD_OFFSET)
107 /* Initialization code and data: */
109 . = ALIGN(PAGE_SIZE);
111 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET)
118 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET)
121 #ifdef CONFIG_BLK_DEV_INITRD
122 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET)
124 __initramfs_start = .;
131 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET)
137 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET)
139 __initcall_start = .;
144 .data.patch.vtop : AT(ADDR(.data.patch.vtop) - LOAD_OFFSET)
146 __start___vtop_patchlist = .;
148 __end___vtop_patchlist = .;
151 .data.patch.mckinley_e9 : AT(ADDR(.data.patch.mckinley_e9) - LOAD_OFFSET)
153 __start___mckinley_e9_bundles = .;
154 *(.data.patch.mckinley_e9)
155 __end___mckinley_e9_bundles = .;
158 #if defined(CONFIG_IA64_GENERIC)
161 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
170 __con_initcall_start = .;
171 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
172 { *(.con_initcall.init) }
173 __con_initcall_end = .;
174 __security_initcall_start = .;
175 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET)
176 { *(.security_initcall.init) }
177 __security_initcall_end = .;
178 . = ALIGN(PAGE_SIZE);
181 /* The initial task and kernel stack */
182 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
183 { *(.data.init_task) }
185 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
186 { *(__special_page_section)
187 __start_gate_section = .;
189 __stop_gate_section = .;
191 . = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose
195 .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET)
196 { *(.data.read_mostly) }
198 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
199 { *(.data.cacheline_aligned) }
203 . = ALIGN(PERCPU_PAGE_SIZE);
204 __phys_per_cpu_start = .;
205 .data.percpu PERCPU_ADDR : AT(__phys_per_cpu_start - LOAD_OFFSET)
211 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits
212 * into percpu page size
216 .data : AT(ADDR(.data) - LOAD_OFFSET)
224 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
225 .got : AT(ADDR(.got) - LOAD_OFFSET)
226 { *(.got.plt) *(.got) }
227 __gp = ADDR(.got) + 0x200000;
228 /* We want the small data sections together, so single-instruction offsets
229 can access them all, and initialized data all before uninitialized, so
230 we can shorten the on-disk segment size. */
231 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
232 { *(.sdata) *(.sdata1) *(.srdata) }
235 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
236 { *(.sbss) *(.scommon) }
237 .bss : AT(ADDR(.bss) - LOAD_OFFSET)
238 { *(.bss) *(COMMON) }
243 /* Stabs debugging sections. */
244 .stab 0 : { *(.stab) }
245 .stabstr 0 : { *(.stabstr) }
246 .stab.excl 0 : { *(.stab.excl) }
247 .stab.exclstr 0 : { *(.stab.exclstr) }
248 .stab.index 0 : { *(.stab.index) }
249 .stab.indexstr 0 : { *(.stab.indexstr) }
250 /* DWARF debug sections.
251 Symbols in the DWARF debugging sections are relative to the beginning
252 of the section so we begin them at 0. */
254 .debug 0 : { *(.debug) }
255 .line 0 : { *(.line) }
256 /* GNU DWARF 1 extensions */
257 .debug_srcinfo 0 : { *(.debug_srcinfo) }
258 .debug_sfnames 0 : { *(.debug_sfnames) }
259 /* DWARF 1.1 and DWARF 2 */
260 .debug_aranges 0 : { *(.debug_aranges) }
261 .debug_pubnames 0 : { *(.debug_pubnames) }
263 .debug_info 0 : { *(.debug_info) }
264 .debug_abbrev 0 : { *(.debug_abbrev) }
265 .debug_line 0 : { *(.debug_line) }
266 .debug_frame 0 : { *(.debug_frame) }
267 .debug_str 0 : { *(.debug_str) }
268 .debug_loc 0 : { *(.debug_loc) }
269 .debug_macinfo 0 : { *(.debug_macinfo) }
270 /* SGI/MIPS DWARF 2 extensions */
271 .debug_weaknames 0 : { *(.debug_weaknames) }
272 .debug_funcnames 0 : { *(.debug_funcnames) }
273 .debug_typenames 0 : { *(.debug_typenames) }
274 .debug_varnames 0 : { *(.debug_varnames) }
275 /* These must appear regardless of . */
276 /* Discard them for now since Intel SoftSDV cannot handle them.
277 .comment 0 : { *(.comment) }
278 .note 0 : { *(.note) }
280 /DISCARD/ : { *(.comment) }
281 /DISCARD/ : { *(.note) }