3 #include <asm/ptrace.h>
4 #include <asm/pgtable.h>
6 #include <asm-generic/vmlinux.lds.h>
8 OUTPUT_FORMAT("elf64-ia64-little")
18 unwind 0x70000001; /* PT_IA_64_UNWIND, but ld doesn't match the name */
23 * unwind exit sections must be discarded before
24 * the rest of the sections get included.
27 *(.IA_64.unwind.exit.text)
28 *(.IA_64.unwind_info.exit.text)
33 v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */
34 phys_start = _start - LOAD_OFFSET;
43 .text : AT(ADDR(.text) - LOAD_OFFSET) {
54 .text2 : AT(ADDR(.text2) - LOAD_OFFSET) {
59 .text..lock : AT(ADDR(.text..lock) - LOAD_OFFSET) {
68 NOTES :code :note /* put .notes in text and mark in PT_NOTE */
70 } : code /* switch back to regular program... */
76 __mca_table : AT(ADDR(__mca_table) - LOAD_OFFSET) {
77 __start___mca_table = .;
79 __stop___mca_table = .;
82 .data..patch.phys_stack_reg : AT(ADDR(.data..patch.phys_stack_reg) - LOAD_OFFSET) {
83 __start___phys_stack_reg_patchlist = .;
84 *(.data..patch.phys_stack_reg)
85 __end___phys_stack_reg_patchlist = .;
93 /* Unwind info & table: */
95 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET) {
96 *(.IA_64.unwind_info*)
98 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET) {
108 .opd : AT(ADDR(.opd) - LOAD_OFFSET) {
113 * Initialization code and data:
115 . = ALIGN(PAGE_SIZE);
118 INIT_TEXT_SECTION(PAGE_SIZE)
119 INIT_DATA_SECTION(16)
121 .data..patch.vtop : AT(ADDR(.data..patch.vtop) - LOAD_OFFSET) {
122 __start___vtop_patchlist = .;
124 __end___vtop_patchlist = .;
127 .data..patch.rse : AT(ADDR(.data..patch.rse) - LOAD_OFFSET) {
128 __start___rse_patchlist = .;
130 __end___rse_patchlist = .;
133 .data..patch.mckinley_e9 : AT(ADDR(.data..patch.mckinley_e9) - LOAD_OFFSET) {
134 __start___mckinley_e9_bundles = .;
135 *(.data..patch.mckinley_e9)
136 __end___mckinley_e9_bundles = .;
139 #if defined(CONFIG_PARAVIRT)
141 .paravirt_bundles : AT(ADDR(.paravirt_bundles) - LOAD_OFFSET) {
142 __start_paravirt_bundles = .;
144 __stop_paravirt_bundles = .;
147 .paravirt_insts : AT(ADDR(.paravirt_insts) - LOAD_OFFSET) {
148 __start_paravirt_insts = .;
150 __stop_paravirt_insts = .;
153 .paravirt_branches : AT(ADDR(.paravirt_branches) - LOAD_OFFSET) {
154 __start_paravirt_branches = .;
155 *(.paravirt_branches)
156 __stop_paravirt_branches = .;
160 #if defined(CONFIG_IA64_GENERIC)
163 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET) {
171 . = ALIGN(PERCPU_PAGE_SIZE);
173 . = . + PERCPU_PAGE_SIZE; /* cpu0 per-cpu space */
176 . = ALIGN(PAGE_SIZE);
179 .data..page_aligned : AT(ADDR(.data..page_aligned) - LOAD_OFFSET) {
180 PAGE_ALIGNED_DATA(PAGE_SIZE)
181 . = ALIGN(PAGE_SIZE);
182 __start_gate_section = .;
184 __stop_gate_section = .;
187 * make sure the gate page doesn't expose
190 . = ALIGN(PAGE_SIZE);
193 . = ALIGN(PERCPU_PAGE_SIZE);
194 PERCPU_VADDR(SMP_CACHE_BYTES, PERCPU_ADDR, :percpu)
195 __phys_per_cpu_start = __per_cpu_load;
197 * ensure percpu data fits
198 * into percpu page size
200 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE;
204 .data : AT(ADDR(.data) - LOAD_OFFSET) {
206 INIT_TASK_DATA(PAGE_SIZE)
207 CACHELINE_ALIGNED_DATA(SMP_CACHE_BYTES)
208 READ_MOSTLY_DATA(SMP_CACHE_BYTES)
215 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
216 .got : AT(ADDR(.got) - LOAD_OFFSET) {
220 __gp = ADDR(.got) + 0x200000;
223 * We want the small data sections together,
224 * so single-instruction offsets can access
225 * them all, and initialized data all before
226 * uninitialized, so we can shorten the
227 * on-disk segment size.
229 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET) {
246 /* Default discards */