1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <asm-generic/vmlinux.lds.h>
5 #include <asm/thread_info.h>
6 #include <hv/hypervisor.h>
8 /* Text loads starting from the supervisor interrupt vector address. */
9 #define TEXT_OFFSET MEM_SV_START
23 /* Text is loaded with a different VA than data; start with text. */
25 #define LOAD_OFFSET TEXT_OFFSET
27 /* Interrupt vectors */
28 .intrpt (LOAD_OFFSET) : AT ( 0 ) /* put at the start of physical memory */
34 /* Hypervisor call vectors */
36 .hvglue : AT (ADDR(.hvglue) - LOAD_OFFSET) {
40 /* Now the real code */
43 .text : AT (ADDR(.text) - LOAD_OFFSET) {
51 __fix_text_end = .; /* tile-cpack won't rearrange before this */
62 /* "Init" is divided into two areas with very different virtual addresses. */
63 INIT_TEXT_SECTION(PAGE_SIZE)
66 * Some things, like the __jump_table, may contain symbol references
67 * to __exit text, so include such text in the final image if so.
68 * In that case we also override the _einittext from INIT_TEXT_SECTION.
70 #ifdef CONFIG_JUMP_LABEL
77 /* Now we skip back to PAGE_OFFSET for the data. */
78 . = (. - TEXT_OFFSET + PAGE_OFFSET);
80 #define LOAD_OFFSET PAGE_OFFSET
84 INIT_DATA_SECTION(16) :data =0
85 PERCPU_SECTION(L2_CACHE_BYTES)
89 _sdata = .; /* Start of data section */
90 RO_DATA_SECTION(PAGE_SIZE)
91 RW_DATA_SECTION(L2_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
94 EXCEPTION_TABLE(L2_CACHE_BYTES)
98 BSS_SECTION(8, PAGE_SIZE, 1)