1 #include <linux/config.h>
4 #include <asm/ptrace.h>
5 #include <asm/system.h>
7 #define LOAD_OFFSET PAGE_OFFSET
8 #include <asm-generic/vmlinux.lds.h>
10 OUTPUT_FORMAT("elf64-ia64-little")
16 /* Sections to be discarded */
21 *(.IA_64.unwind.exit.text)
22 *(.IA_64.unwind_info.exit.text)
25 v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */
26 phys_start = _start - PAGE_OFFSET;
33 .text : AT(ADDR(.text) - PAGE_OFFSET)
38 .text2 : AT(ADDR(.text2) - PAGE_OFFSET)
41 .text.lock : AT(ADDR(.text.lock) - PAGE_OFFSET)
50 __ex_table : AT(ADDR(__ex_table) - PAGE_OFFSET)
52 __start___ex_table = .;
54 __stop___ex_table = .;
57 __mckinley_e9_bundles : AT(ADDR(__mckinley_e9_bundles) - PAGE_OFFSET)
59 __start___mckinley_e9_bundles = .;
60 *(__mckinley_e9_bundles)
61 __end___mckinley_e9_bundles = .;
67 #if defined(CONFIG_IA64_GENERIC)
70 .machvec : AT(ADDR(.machvec) - PAGE_OFFSET)
78 /* Unwind info & table: */
80 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - PAGE_OFFSET)
81 { *(.IA_64.unwind_info*) }
82 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - PAGE_OFFSET)
91 .opd : AT(ADDR(.opd) - PAGE_OFFSET)
94 /* Initialization code and data: */
98 .init.text : AT(ADDR(.init.text) - PAGE_OFFSET)
105 .init.data : AT(ADDR(.init.data) - PAGE_OFFSET)
108 .init.ramfs : AT(ADDR(.init.ramfs) - PAGE_OFFSET)
110 __initramfs_start = .;
116 .init.setup : AT(ADDR(.init.setup) - PAGE_OFFSET)
122 __param : AT(ADDR(__param) - PAGE_OFFSET)
128 .initcall.init : AT(ADDR(.initcall.init) - PAGE_OFFSET)
130 __initcall_start = .;
140 __con_initcall_start = .;
141 .con_initcall.init : AT(ADDR(.con_initcall.init) - PAGE_OFFSET)
142 { *(.con_initcall.init) }
143 __con_initcall_end = .;
144 . = ALIGN(PAGE_SIZE);
147 /* The initial task and kernel stack */
148 .data.init_task : AT(ADDR(.data.init_task) - PAGE_OFFSET)
149 { *(.data.init_task) }
151 .data.page_aligned : AT(ADDR(.data.page_aligned) - PAGE_OFFSET)
152 { *(__special_page_section)
153 __start_gate_section = .;
155 __stop_gate_section = .;
158 . = ALIGN(SMP_CACHE_BYTES);
159 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - PAGE_OFFSET)
160 { *(.data.cacheline_aligned) }
163 . = ALIGN(PERCPU_PAGE_SIZE);
164 __phys_per_cpu_start = .;
165 .data.percpu PERCPU_ADDR : AT(__phys_per_cpu_start - PAGE_OFFSET)
171 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE; /* ensure percpu data fits into percpu page size */
173 .data : AT(ADDR(.data) - PAGE_OFFSET)
174 { *(.data) *(.gnu.linkonce.d*) CONSTRUCTORS }
177 __gp = . + 0x200000; /* gp must be 16-byte aligned for exc. table */
179 .got : AT(ADDR(.got) - PAGE_OFFSET)
180 { *(.got.plt) *(.got) }
181 /* We want the small data sections together, so single-instruction offsets
182 can access them all, and initialized data all before uninitialized, so
183 we can shorten the on-disk segment size. */
184 .sdata : AT(ADDR(.sdata) - PAGE_OFFSET)
188 .sbss : AT(ADDR(.sbss) - PAGE_OFFSET)
189 { *(.sbss) *(.scommon) }
190 .bss : AT(ADDR(.bss) - PAGE_OFFSET)
191 { *(.bss) *(COMMON) }
195 /* Stabs debugging sections. */
196 .stab 0 : { *(.stab) }
197 .stabstr 0 : { *(.stabstr) }
198 .stab.excl 0 : { *(.stab.excl) }
199 .stab.exclstr 0 : { *(.stab.exclstr) }
200 .stab.index 0 : { *(.stab.index) }
201 .stab.indexstr 0 : { *(.stab.indexstr) }
202 /* DWARF debug sections.
203 Symbols in the DWARF debugging sections are relative to the beginning
204 of the section so we begin them at 0. */
206 .debug 0 : { *(.debug) }
207 .line 0 : { *(.line) }
208 /* GNU DWARF 1 extensions */
209 .debug_srcinfo 0 : { *(.debug_srcinfo) }
210 .debug_sfnames 0 : { *(.debug_sfnames) }
211 /* DWARF 1.1 and DWARF 2 */
212 .debug_aranges 0 : { *(.debug_aranges) }
213 .debug_pubnames 0 : { *(.debug_pubnames) }
215 .debug_info 0 : { *(.debug_info) }
216 .debug_abbrev 0 : { *(.debug_abbrev) }
217 .debug_line 0 : { *(.debug_line) }
218 .debug_frame 0 : { *(.debug_frame) }
219 .debug_str 0 : { *(.debug_str) }
220 .debug_loc 0 : { *(.debug_loc) }
221 .debug_macinfo 0 : { *(.debug_macinfo) }
222 /* SGI/MIPS DWARF 2 extensions */
223 .debug_weaknames 0 : { *(.debug_weaknames) }
224 .debug_funcnames 0 : { *(.debug_funcnames) }
225 .debug_typenames 0 : { *(.debug_typenames) }
226 .debug_varnames 0 : { *(.debug_varnames) }
227 /* These must appear regardless of . */
228 /* Discard them for now since Intel SoftSDV cannot handle them.
229 .comment 0 : { *(.comment) }
230 .note 0 : { *(.note) }
232 /DISCARD/ : { *(.comment) }
233 /DISCARD/ : { *(.note) }