3 #include <asm/ptrace.h>
4 #include <asm/system.h>
5 #include <asm/pgtable.h>
7 #include <asm-generic/vmlinux.lds.h>
9 OUTPUT_FORMAT("elf64-ia64-little")
19 unwind 0x70000001; /* PT_IA_64_UNWIND, but ld doesn't match the name */
24 * unwind exit sections must be discarded before
25 * the rest of the sections get included.
28 *(.IA_64.unwind.exit.text)
29 *(.IA_64.unwind_info.exit.text)
34 v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */
35 phys_start = _start - LOAD_OFFSET;
44 .text : AT(ADDR(.text) - LOAD_OFFSET) {
55 .text2 : AT(ADDR(.text2) - LOAD_OFFSET) {
60 .text..lock : AT(ADDR(.text..lock) - LOAD_OFFSET) {
69 NOTES :code :note /* put .notes in text and mark in PT_NOTE */
71 } : code /* switch back to regular program... */
77 __mca_table : AT(ADDR(__mca_table) - LOAD_OFFSET) {
78 __start___mca_table = .;
80 __stop___mca_table = .;
83 .data..patch.phys_stack_reg : AT(ADDR(.data..patch.phys_stack_reg) - LOAD_OFFSET) {
84 __start___phys_stack_reg_patchlist = .;
85 *(.data..patch.phys_stack_reg)
86 __end___phys_stack_reg_patchlist = .;
94 /* Unwind info & table: */
96 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET) {
97 *(.IA_64.unwind_info*)
99 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET) {
109 .opd : AT(ADDR(.opd) - LOAD_OFFSET) {
114 * Initialization code and data:
116 . = ALIGN(PAGE_SIZE);
119 INIT_TEXT_SECTION(PAGE_SIZE)
120 INIT_DATA_SECTION(16)
122 .data..patch.vtop : AT(ADDR(.data..patch.vtop) - LOAD_OFFSET) {
123 __start___vtop_patchlist = .;
125 __end___vtop_patchlist = .;
128 .data..patch.rse : AT(ADDR(.data..patch.rse) - LOAD_OFFSET) {
129 __start___rse_patchlist = .;
131 __end___rse_patchlist = .;
134 .data..patch.mckinley_e9 : AT(ADDR(.data..patch.mckinley_e9) - LOAD_OFFSET) {
135 __start___mckinley_e9_bundles = .;
136 *(.data..patch.mckinley_e9)
137 __end___mckinley_e9_bundles = .;
140 #if defined(CONFIG_PARAVIRT)
142 .paravirt_bundles : AT(ADDR(.paravirt_bundles) - LOAD_OFFSET) {
143 __start_paravirt_bundles = .;
145 __stop_paravirt_bundles = .;
148 .paravirt_insts : AT(ADDR(.paravirt_insts) - LOAD_OFFSET) {
149 __start_paravirt_insts = .;
151 __stop_paravirt_insts = .;
154 .paravirt_branches : AT(ADDR(.paravirt_branches) - LOAD_OFFSET) {
155 __start_paravirt_branches = .;
156 *(.paravirt_branches)
157 __stop_paravirt_branches = .;
161 #if defined(CONFIG_IA64_GENERIC)
164 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET) {
172 . = ALIGN(PERCPU_PAGE_SIZE);
174 . = . + PERCPU_PAGE_SIZE; /* cpu0 per-cpu space */
177 . = ALIGN(PAGE_SIZE);
180 .data..page_aligned : AT(ADDR(.data..page_aligned) - LOAD_OFFSET) {
181 PAGE_ALIGNED_DATA(PAGE_SIZE)
182 . = ALIGN(PAGE_SIZE);
183 __start_gate_section = .;
185 __stop_gate_section = .;
187 . = ALIGN(PAGE_SIZE);
188 __xen_start_gate_section = .;
190 __xen_stop_gate_section = .;
194 * make sure the gate page doesn't expose
197 . = ALIGN(PAGE_SIZE);
200 . = ALIGN(PERCPU_PAGE_SIZE);
201 PERCPU_VADDR(SMP_CACHE_BYTES, PERCPU_ADDR, :percpu)
202 __phys_per_cpu_start = __per_cpu_load;
204 * ensure percpu data fits
205 * into percpu page size
207 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE;
211 .data : AT(ADDR(.data) - LOAD_OFFSET) {
212 INIT_TASK_DATA(PAGE_SIZE)
213 CACHELINE_ALIGNED_DATA(SMP_CACHE_BYTES)
214 READ_MOSTLY_DATA(SMP_CACHE_BYTES)
221 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
222 .got : AT(ADDR(.got) - LOAD_OFFSET) {
226 __gp = ADDR(.got) + 0x200000;
229 * We want the small data sections together,
230 * so single-instruction offsets can access
231 * them all, and initialized data all before
232 * uninitialized, so we can shorten the
233 * on-disk segment size.
235 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET) {
252 /* Default discards */