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>
16 #if defined(CONFIG_GCOV_KERNEL)
17 #define NDS32_EXIT_KEEP(x) x
19 #define NDS32_EXIT_KEEP(x)
24 _stext_lma = TEXTADDR - LOAD_OFFSET;
29 NDS32_EXIT_KEEP(EXIT_TEXT)
31 INIT_TEXT_SECTION(PAGE_SIZE)
34 NDS32_EXIT_KEEP(EXIT_DATA)
36 PERCPU_SECTION(L1_CACHE_BYTES)
41 /* Real text segment */
42 .text : AT(ADDR(.text) - LOAD_OFFSET) {
43 _text = .; /* Text and read-only data */
54 _etext = .; /* End of text and rodata section */
58 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)