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>
12 VMLINUX_SYMBOL(__start_ivt_text) = .; \
14 VMLINUX_SYMBOL(__end_ivt_text) = .;
16 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 .text2 : AT(ADDR(.text2) - LOAD_OFFSET)
57 .text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET)
66 __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET)
68 __start___ex_table = .;
70 __stop___ex_table = .;
76 /* Unwind info & table: */
78 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET)
79 { *(.IA_64.unwind_info*) }
80 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET)
89 .opd : AT(ADDR(.opd) - LOAD_OFFSET)
92 /* Initialization code and data: */
96 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET)
103 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET)
106 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET)
108 __initramfs_start = .;
114 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET)
120 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET)
122 __initcall_start = .;
133 .data.patch.vtop : AT(ADDR(.data.patch.vtop) - LOAD_OFFSET)
135 __start___vtop_patchlist = .;
137 __end___vtop_patchlist = .;
140 .data.patch.mckinley_e9 : AT(ADDR(.data.patch.mckinley_e9) - LOAD_OFFSET)
142 __start___mckinley_e9_bundles = .;
143 *(.data.patch.mckinley_e9)
144 __end___mckinley_e9_bundles = .;
147 #if defined(CONFIG_IA64_GENERIC)
150 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
158 __con_initcall_start = .;
159 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
160 { *(.con_initcall.init) }
161 __con_initcall_end = .;
162 __security_initcall_start = .;
163 .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET)
164 { *(.security_initcall.init) }
165 __security_initcall_end = .;
166 . = ALIGN(PAGE_SIZE);
169 /* The initial task and kernel stack */
170 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
171 { *(.data.init_task) }
173 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
174 { *(__special_page_section)
175 __start_gate_section = .;
177 __stop_gate_section = .;
179 . = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose kernel data */
181 .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET)
182 { *(.data.read_mostly) }
184 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
185 { *(.data.cacheline_aligned) }
189 . = ALIGN(PERCPU_PAGE_SIZE);
190 __phys_per_cpu_start = .;
191 .data.percpu PERCPU_ADDR : AT(__phys_per_cpu_start - LOAD_OFFSET)
197 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits into percpu page size */
200 .data : AT(ADDR(.data) - LOAD_OFFSET)
201 { *(.data) *(.data1) *(.gnu.linkonce.d*) CONSTRUCTORS }
203 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
204 .got : AT(ADDR(.got) - LOAD_OFFSET)
205 { *(.got.plt) *(.got) }
206 __gp = ADDR(.got) + 0x200000;
207 /* We want the small data sections together, so single-instruction offsets
208 can access them all, and initialized data all before uninitialized, so
209 we can shorten the on-disk segment size. */
210 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
211 { *(.sdata) *(.sdata1) *(.srdata) }
214 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
215 { *(.sbss) *(.scommon) }
216 .bss : AT(ADDR(.bss) - LOAD_OFFSET)
217 { *(.bss) *(COMMON) }
222 /* Stabs debugging sections. */
223 .stab 0 : { *(.stab) }
224 .stabstr 0 : { *(.stabstr) }
225 .stab.excl 0 : { *(.stab.excl) }
226 .stab.exclstr 0 : { *(.stab.exclstr) }
227 .stab.index 0 : { *(.stab.index) }
228 .stab.indexstr 0 : { *(.stab.indexstr) }
229 /* DWARF debug sections.
230 Symbols in the DWARF debugging sections are relative to the beginning
231 of the section so we begin them at 0. */
233 .debug 0 : { *(.debug) }
234 .line 0 : { *(.line) }
235 /* GNU DWARF 1 extensions */
236 .debug_srcinfo 0 : { *(.debug_srcinfo) }
237 .debug_sfnames 0 : { *(.debug_sfnames) }
238 /* DWARF 1.1 and DWARF 2 */
239 .debug_aranges 0 : { *(.debug_aranges) }
240 .debug_pubnames 0 : { *(.debug_pubnames) }
242 .debug_info 0 : { *(.debug_info) }
243 .debug_abbrev 0 : { *(.debug_abbrev) }
244 .debug_line 0 : { *(.debug_line) }
245 .debug_frame 0 : { *(.debug_frame) }
246 .debug_str 0 : { *(.debug_str) }
247 .debug_loc 0 : { *(.debug_loc) }
248 .debug_macinfo 0 : { *(.debug_macinfo) }
249 /* SGI/MIPS DWARF 2 extensions */
250 .debug_weaknames 0 : { *(.debug_weaknames) }
251 .debug_funcnames 0 : { *(.debug_funcnames) }
252 .debug_typenames 0 : { *(.debug_typenames) }
253 .debug_varnames 0 : { *(.debug_varnames) }
254 /* These must appear regardless of . */
255 /* Discard them for now since Intel SoftSDV cannot handle them.
256 .comment 0 : { *(.comment) }
257 .note 0 : { *(.note) }
259 /DISCARD/ : { *(.comment) }
260 /DISCARD/ : { *(.note) }