1 #include <asm-generic/vmlinux.lds.h>
4 #include <asm/thread_info.h>
5 #include <hv/hypervisor.h>
7 /* Text loads starting from the supervisor interrupt vector address. */
8 #define TEXT_OFFSET MEM_SV_START
22 /* Text is loaded with a different VA than data; start with text. */
24 #define LOAD_OFFSET TEXT_OFFSET
26 /* Interrupt vectors */
27 .intrpt (LOAD_OFFSET) : AT ( 0 ) /* put at the start of physical memory */
33 /* Hypervisor call vectors */
35 .hvglue : AT (ADDR(.hvglue) - LOAD_OFFSET) {
39 /* Now the real code */
42 .text : AT (ADDR(.text) - LOAD_OFFSET) {
49 __fix_text_end = .; /* tile-cpack won't rearrange before this */
60 /* "Init" is divided into two areas with very different virtual addresses. */
61 INIT_TEXT_SECTION(PAGE_SIZE)
64 * Some things, like the __jump_table, may contain symbol references
65 * to __exit text, so include such text in the final image if so.
66 * In that case we also override the _einittext from INIT_TEXT_SECTION.
68 #ifdef CONFIG_JUMP_LABEL
75 /* Now we skip back to PAGE_OFFSET for the data. */
76 . = (. - TEXT_OFFSET + PAGE_OFFSET);
78 #define LOAD_OFFSET PAGE_OFFSET
82 INIT_DATA_SECTION(16) :data =0
83 PERCPU_SECTION(L2_CACHE_BYTES)
87 _sdata = .; /* Start of data section */
88 RO_DATA_SECTION(PAGE_SIZE)
89 RW_DATA_SECTION(L2_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
92 EXCEPTION_TABLE(L2_CACHE_BYTES)
96 BSS_SECTION(8, PAGE_SIZE, 1)