1 #include <linux/config.h>
4 #include <asm/ptrace.h>
5 #include <asm/system.h>
6 #include <asm/pgtable.h>
8 #define LOAD_OFFSET (KERNEL_START - KERNEL_TR_PAGE_SIZE)
9 #include <asm-generic/vmlinux.lds.h>
11 OUTPUT_FORMAT("elf64-ia64-little")
22 /* Sections to be discarded */
27 *(.IA_64.unwind.exit.text)
28 *(.IA_64.unwind_info.exit.text)
31 v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */
32 phys_start = _start - LOAD_OFFSET;
40 .text : AT(ADDR(.text) - LOAD_OFFSET)
47 .text2 : AT(ADDR(.text2) - LOAD_OFFSET)
50 .text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET)
59 __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET)
61 __start___ex_table = .;
63 __stop___ex_table = .;
66 .data.patch.vtop : AT(ADDR(.data.patch.vtop) - LOAD_OFFSET)
68 __start___vtop_patchlist = .;
70 __end___vtop_patchlist = .;
73 .data.patch.mckinley_e9 : AT(ADDR(.data.patch.mckinley_e9) - LOAD_OFFSET)
75 __start___mckinley_e9_bundles = .;
76 *(.data.patch.mckinley_e9)
77 __end___mckinley_e9_bundles = .;
83 #if defined(CONFIG_IA64_GENERIC)
86 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
94 /* Unwind info & table: */
96 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET)
97 { *(.IA_64.unwind_info*) }
98 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET)
107 .opd : AT(ADDR(.opd) - LOAD_OFFSET)
110 /* Initialization code and data: */
112 . = ALIGN(PAGE_SIZE);
114 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET)
121 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET)
124 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET)
126 __initramfs_start = .;
132 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET)
138 __param : AT(ADDR(__param) - LOAD_OFFSET)
144 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET)
146 __initcall_start = .;
156 __con_initcall_start = .;
157 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
158 { *(.con_initcall.init) }
159 __con_initcall_end = .;
160 __security_initcall_start = .;
161 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET)
162 { *(.security_initcall.init) }
163 __security_initcall_end = .;
164 . = ALIGN(PAGE_SIZE);
167 /* The initial task and kernel stack */
168 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
169 { *(.data.init_task) }
171 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
172 { *(__special_page_section)
173 __start_gate_section = .;
175 __stop_gate_section = .;
177 . = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose kernel data */
179 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
180 { *(.data.cacheline_aligned) }
184 . = ALIGN(PERCPU_PAGE_SIZE);
185 __phys_per_cpu_start = .;
186 .data.percpu PERCPU_ADDR : AT(__phys_per_cpu_start - LOAD_OFFSET)
192 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits into percpu page size */
195 .data : AT(ADDR(.data) - LOAD_OFFSET)
196 { *(.data) *(.data1) *(.gnu.linkonce.d*) CONSTRUCTORS }
199 __gp = . + 0x200000; /* gp must be 16-byte aligned for exc. table */
201 .got : AT(ADDR(.got) - LOAD_OFFSET)
202 { *(.got.plt) *(.got) }
203 /* We want the small data sections together, so single-instruction offsets
204 can access them all, and initialized data all before uninitialized, so
205 we can shorten the on-disk segment size. */
206 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
207 { *(.sdata) *(.sdata1) *(.srdata) }
210 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
211 { *(.sbss) *(.scommon) }
212 .bss : AT(ADDR(.bss) - LOAD_OFFSET)
213 { *(.bss) *(COMMON) }
218 /* Stabs debugging sections. */
219 .stab 0 : { *(.stab) }
220 .stabstr 0 : { *(.stabstr) }
221 .stab.excl 0 : { *(.stab.excl) }
222 .stab.exclstr 0 : { *(.stab.exclstr) }
223 .stab.index 0 : { *(.stab.index) }
224 .stab.indexstr 0 : { *(.stab.indexstr) }
225 /* DWARF debug sections.
226 Symbols in the DWARF debugging sections are relative to the beginning
227 of the section so we begin them at 0. */
229 .debug 0 : { *(.debug) }
230 .line 0 : { *(.line) }
231 /* GNU DWARF 1 extensions */
232 .debug_srcinfo 0 : { *(.debug_srcinfo) }
233 .debug_sfnames 0 : { *(.debug_sfnames) }
234 /* DWARF 1.1 and DWARF 2 */
235 .debug_aranges 0 : { *(.debug_aranges) }
236 .debug_pubnames 0 : { *(.debug_pubnames) }
238 .debug_info 0 : { *(.debug_info) }
239 .debug_abbrev 0 : { *(.debug_abbrev) }
240 .debug_line 0 : { *(.debug_line) }
241 .debug_frame 0 : { *(.debug_frame) }
242 .debug_str 0 : { *(.debug_str) }
243 .debug_loc 0 : { *(.debug_loc) }
244 .debug_macinfo 0 : { *(.debug_macinfo) }
245 /* SGI/MIPS DWARF 2 extensions */
246 .debug_weaknames 0 : { *(.debug_weaknames) }
247 .debug_funcnames 0 : { *(.debug_funcnames) }
248 .debug_typenames 0 : { *(.debug_typenames) }
249 .debug_varnames 0 : { *(.debug_varnames) }
250 /* These must appear regardless of . */
251 /* Discard them for now since Intel SoftSDV cannot handle them.
252 .comment 0 : { *(.comment) }
253 .note 0 : { *(.note) }
255 /DISCARD/ : { *(.comment) }
256 /DISCARD/ : { *(.note) }