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")
17 /* Sections to be discarded */
22 *(.IA_64.unwind.exit.text)
23 *(.IA_64.unwind_info.exit.text)
26 v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */
27 phys_start = _start - LOAD_OFFSET;
34 .text : AT(ADDR(.text) - LOAD_OFFSET)
39 .text2 : AT(ADDR(.text2) - LOAD_OFFSET)
42 .text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET)
51 __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET)
53 __start___ex_table = .;
55 __stop___ex_table = .;
58 __mckinley_e9_bundles : AT(ADDR(__mckinley_e9_bundles) - LOAD_OFFSET)
60 __start___mckinley_e9_bundles = .;
61 *(__mckinley_e9_bundles)
62 __end___mckinley_e9_bundles = .;
68 #if defined(CONFIG_IA64_GENERIC)
71 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET)
79 /* Unwind info & table: */
81 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET)
82 { *(.IA_64.unwind_info*) }
83 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET)
92 .opd : AT(ADDR(.opd) - LOAD_OFFSET)
95 /* Initialization code and data: */
99 .init.text : AT(ADDR(.init.text) - LOAD_OFFSET)
106 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET)
109 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET)
111 __initramfs_start = .;
117 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET)
123 __param : AT(ADDR(__param) - LOAD_OFFSET)
129 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET)
131 __initcall_start = .;
141 __con_initcall_start = .;
142 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET)
143 { *(.con_initcall.init) }
144 __con_initcall_end = .;
145 . = ALIGN(PAGE_SIZE);
148 /* The initial task and kernel stack */
149 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET)
150 { *(.data.init_task) }
152 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET)
153 { *(__special_page_section)
154 __start_gate_section = .;
156 __stop_gate_section = .;
159 . = ALIGN(SMP_CACHE_BYTES);
160 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET)
161 { *(.data.cacheline_aligned) }
164 . = ALIGN(PERCPU_PAGE_SIZE);
165 __phys_per_cpu_start = .;
166 .data.percpu PERCPU_ADDR : AT(__phys_per_cpu_start - LOAD_OFFSET)
172 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits into percpu page size */
174 .data : AT(ADDR(.data) - LOAD_OFFSET)
175 { *(.data) *(.gnu.linkonce.d*) CONSTRUCTORS }
178 __gp = . + 0x200000; /* gp must be 16-byte aligned for exc. table */
180 .got : AT(ADDR(.got) - LOAD_OFFSET)
181 { *(.got.plt) *(.got) }
182 /* We want the small data sections together, so single-instruction offsets
183 can access them all, and initialized data all before uninitialized, so
184 we can shorten the on-disk segment size. */
185 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET)
189 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET)
190 { *(.sbss) *(.scommon) }
191 .bss : AT(ADDR(.bss) - LOAD_OFFSET)
192 { *(.bss) *(COMMON) }
196 /* Stabs debugging sections. */
197 .stab 0 : { *(.stab) }
198 .stabstr 0 : { *(.stabstr) }
199 .stab.excl 0 : { *(.stab.excl) }
200 .stab.exclstr 0 : { *(.stab.exclstr) }
201 .stab.index 0 : { *(.stab.index) }
202 .stab.indexstr 0 : { *(.stab.indexstr) }
203 /* DWARF debug sections.
204 Symbols in the DWARF debugging sections are relative to the beginning
205 of the section so we begin them at 0. */
207 .debug 0 : { *(.debug) }
208 .line 0 : { *(.line) }
209 /* GNU DWARF 1 extensions */
210 .debug_srcinfo 0 : { *(.debug_srcinfo) }
211 .debug_sfnames 0 : { *(.debug_sfnames) }
212 /* DWARF 1.1 and DWARF 2 */
213 .debug_aranges 0 : { *(.debug_aranges) }
214 .debug_pubnames 0 : { *(.debug_pubnames) }
216 .debug_info 0 : { *(.debug_info) }
217 .debug_abbrev 0 : { *(.debug_abbrev) }
218 .debug_line 0 : { *(.debug_line) }
219 .debug_frame 0 : { *(.debug_frame) }
220 .debug_str 0 : { *(.debug_str) }
221 .debug_loc 0 : { *(.debug_loc) }
222 .debug_macinfo 0 : { *(.debug_macinfo) }
223 /* SGI/MIPS DWARF 2 extensions */
224 .debug_weaknames 0 : { *(.debug_weaknames) }
225 .debug_funcnames 0 : { *(.debug_funcnames) }
226 .debug_typenames 0 : { *(.debug_typenames) }
227 .debug_varnames 0 : { *(.debug_varnames) }
228 /* These must appear regardless of . */
229 /* Discard them for now since Intel SoftSDV cannot handle them.
230 .comment 0 : { *(.comment) }
231 .note 0 : { *(.note) }
233 /DISCARD/ : { *(.comment) }
234 /DISCARD/ : { *(.note) }