1 /* SPDX-License-Identifier: GPL-2.0 */
3 * vmlinux.lds.S -- master linker script for m68knommu arch
5 * (C) Copyright 2002-2012, Greg Ungerer <gerg@snapgear.com>
7 * This linker script is equipped to build either ROM loaded or RAM
11 #if defined(CONFIG_RAMKERNEL)
12 #define KTEXT_ADDR CONFIG_KERNELBASE
14 #if defined(CONFIG_ROMKERNEL)
15 #define KTEXT_ADDR CONFIG_ROMSTART
16 #define KDATA_ADDR CONFIG_KERNELBASE
17 #define LOAD_OFFSET KDATA_ADDR + (ADDR(.text) + SIZEOF(.text))
21 #include <asm/thread_info.h>
22 #include <asm-generic/vmlinux.lds.h>
27 jiffies = jiffies_64 + 4;
63 RO_DATA_SECTION(PAGE_SIZE)
64 RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE)
72 INIT_TEXT_SECTION(PAGE_SIZE)
90 .comment 0 : { *(.comment) }
92 /* Sections to be discarded */