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_IA64_GENERIC)
142 .machvec : AT(ADDR(.machvec) - LOAD_OFFSET) {
150 . = ALIGN(PERCPU_PAGE_SIZE);
152 . = . + PERCPU_PAGE_SIZE; /* cpu0 per-cpu space */
155 . = ALIGN(PAGE_SIZE);
158 .data..page_aligned : AT(ADDR(.data..page_aligned) - LOAD_OFFSET) {
159 PAGE_ALIGNED_DATA(PAGE_SIZE)
160 . = ALIGN(PAGE_SIZE);
161 __start_gate_section = .;
163 __stop_gate_section = .;
166 * make sure the gate page doesn't expose
169 . = ALIGN(PAGE_SIZE);
172 . = ALIGN(PERCPU_PAGE_SIZE);
173 PERCPU_VADDR(SMP_CACHE_BYTES, PERCPU_ADDR, :percpu)
174 __phys_per_cpu_start = __per_cpu_load;
176 * ensure percpu data fits
177 * into percpu page size
179 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE;
183 .data : AT(ADDR(.data) - LOAD_OFFSET) {
185 INIT_TASK_DATA(PAGE_SIZE)
186 CACHELINE_ALIGNED_DATA(SMP_CACHE_BYTES)
187 READ_MOSTLY_DATA(SMP_CACHE_BYTES)
194 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
195 .got : AT(ADDR(.got) - LOAD_OFFSET) {
199 __gp = ADDR(.got) + 0x200000;
202 * We want the small data sections together,
203 * so single-instruction offsets can access
204 * them all, and initialized data all before
205 * uninitialized, so we can shorten the
206 * on-disk segment size.
208 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET) {
225 /* Default discards */