1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2005-2017 Andes Technology Corporation
5 #include <asm/thread_info.h>
7 #include <asm/memory.h>
9 #define LOAD_OFFSET (PAGE_OFFSET - PHYS_OFFSET)
10 #include <asm-generic/vmlinux.lds.h>
18 _stext_lma = TEXTADDR - LOAD_OFFSET;
22 INIT_TEXT_SECTION(PAGE_SIZE)
24 PERCPU_SECTION(L1_CACHE_BYTES)
29 /* Real text segment */
30 .text : AT(ADDR(.text) - LOAD_OFFSET) {
31 _text = .; /* Text and read-only data */
41 _etext = .; /* End of text and rodata section */
44 RO_DATA_SECTION(PAGE_SIZE)
45 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)