1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* ld script to make Meta Linux kernel */
4 #include <asm/thread_info.h>
8 #include <asm-generic/vmlinux.lds.h>
10 OUTPUT_FORMAT("elf32-metag", "elf32-metag", "elf32-metag")
14 _jiffies = _jiffies_64;
17 . = CONFIG_PAGE_OFFSET;
34 __etext = .; /* End of text section */
37 RO_DATA_SECTION(PAGE_SIZE)
38 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
39 __edata = .; /* End of data section */
44 . = ALIGN(PAGE_SIZE); /* Init code and data */
46 INIT_TEXT_SECTION(PAGE_SIZE)
50 ___arch_info_begin = .;
55 PERCPU_SECTION(L1_CACHE_BYTES)
59 BSS_SECTION(0, PAGE_SIZE, 0)
68 /* When something in the kernel is NOT compiled as a module, the
69 * module cleanup code and data are put into these segments. Both
70 * can then be thrown away, as cleanup code is never called unless