| // SPDX-License-Identifier: GPL-2.0 |
| // Copyright (C) 2005-2017 Andes Technology Corporation |
| #include <asm/thread_info.h> |
| #define LOAD_OFFSET (PAGE_OFFSET - PHYS_OFFSET) |
| #include <asm-generic/vmlinux.lds.h> |
| #if defined(CONFIG_GCOV_KERNEL) |
| #define NDS32_EXIT_KEEP(x) x |
| #define NDS32_EXIT_KEEP(x) |
| _stext_lma = TEXTADDR - LOAD_OFFSET; |
| NDS32_EXIT_KEEP(EXIT_TEXT) |
| INIT_TEXT_SECTION(PAGE_SIZE) |
| NDS32_EXIT_KEEP(EXIT_DATA) |
| PERCPU_SECTION(L1_CACHE_BYTES) |
| .text : AT(ADDR(.text) - LOAD_OFFSET) { |
| _text = .; /* Text and read-only data */ |
| _etext = .; /* End of text and rodata section */ |
| RO_DATA_SECTION(PAGE_SIZE) |
| RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) |