1 /* SPDX-License-Identifier: GPL-2.0 */
3 #include <linux/pgtable.h>
5 #include <asm/ptrace.h>
6 #include <asm/thread_info.h>
9 #define RO_EXCEPTION_TABLE_ALIGN 16
11 #include <asm-generic/vmlinux.lds.h>
13 OUTPUT_FORMAT("elf64-ia64-little")
23 unwind 0x70000001; /* PT_IA_64_UNWIND, but ld doesn't match the name */
28 * unwind exit sections must be discarded before
29 * the rest of the sections get included.
32 *(.IA_64.unwind.exit.text)
33 *(.IA_64.unwind_info.exit.text)
38 v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */
39 phys_start = _start - LOAD_OFFSET;
48 .text : AT(ADDR(.text) - LOAD_OFFSET) {
61 .text2 : AT(ADDR(.text2) - LOAD_OFFSET) {
66 .text..lock : AT(ADDR(.text..lock) - LOAD_OFFSET) {
78 __mca_table : AT(ADDR(__mca_table) - LOAD_OFFSET) {
79 __start___mca_table = .;
81 __stop___mca_table = .;
84 .data..patch.phys_stack_reg : AT(ADDR(.data..patch.phys_stack_reg) - LOAD_OFFSET) {
85 __start___phys_stack_reg_patchlist = .;
86 *(.data..patch.phys_stack_reg)
87 __end___phys_stack_reg_patchlist = .;
95 /* Unwind info & table: */
97 .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - LOAD_OFFSET) {
98 *(.IA_64.unwind_info*)
100 .IA_64.unwind : AT(ADDR(.IA_64.unwind) - LOAD_OFFSET) {
110 .opd : AT(ADDR(.opd) - LOAD_OFFSET) {
117 * Initialization code and data:
119 . = ALIGN(PAGE_SIZE);
122 INIT_TEXT_SECTION(PAGE_SIZE)
123 INIT_DATA_SECTION(16)
125 .data..patch.vtop : AT(ADDR(.data..patch.vtop) - LOAD_OFFSET) {
126 __start___vtop_patchlist = .;
128 __end___vtop_patchlist = .;
131 .data..patch.rse : AT(ADDR(.data..patch.rse) - LOAD_OFFSET) {
132 __start___rse_patchlist = .;
134 __end___rse_patchlist = .;
137 .data..patch.mckinley_e9 : AT(ADDR(.data..patch.mckinley_e9) - LOAD_OFFSET) {
138 __start___mckinley_e9_bundles = .;
139 *(.data..patch.mckinley_e9)
140 __end___mckinley_e9_bundles = .;
144 . = ALIGN(PERCPU_PAGE_SIZE);
146 . = . + PERCPU_PAGE_SIZE; /* cpu0 per-cpu space */
149 . = ALIGN(PAGE_SIZE);
152 .data..page_aligned : AT(ADDR(.data..page_aligned) - LOAD_OFFSET) {
153 PAGE_ALIGNED_DATA(PAGE_SIZE)
154 . = ALIGN(PAGE_SIZE);
155 __start_gate_section = .;
157 __stop_gate_section = .;
160 * make sure the gate page doesn't expose
163 . = ALIGN(PAGE_SIZE);
166 . = ALIGN(PERCPU_PAGE_SIZE);
167 PERCPU_VADDR(SMP_CACHE_BYTES, PERCPU_ADDR, :percpu)
168 __phys_per_cpu_start = __per_cpu_load;
170 * ensure percpu data fits
171 * into percpu page size
173 . = __phys_per_cpu_start + PERCPU_PAGE_SIZE;
177 .data : AT(ADDR(.data) - LOAD_OFFSET) {
179 INIT_TASK_DATA(PAGE_SIZE)
180 CACHELINE_ALIGNED_DATA(SMP_CACHE_BYTES)
181 READ_MOSTLY_DATA(SMP_CACHE_BYTES)
190 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
191 .got : AT(ADDR(.got) - LOAD_OFFSET) {
195 __gp = ADDR(.got) + 0x200000;
198 * We want the small data sections together,
199 * so single-instruction offsets can access
200 * them all, and initialized data all before
201 * uninitialized, so we can shorten the
202 * on-disk segment size.
204 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET) {
222 /* Default discards */