1 /* SPDX-License-Identifier: GPL-2.0 */
3 * ld script to make SuperH Linux kernel
4 * Written by Niibe Yutaka and Paul Mundt
7 #include <asm/thread_info.h>
9 #include <asm/vmlinux.lds.h>
12 #define MEMORY_OFFSET 0
14 #define MEMORY_OFFSET __MEMORY_START
20 . = PAGE_OFFSET + MEMORY_OFFSET + PHYSICAL_OFFSET + CONFIG_ZERO_PAGE_OFFSET;
22 _text = .; /* Text and read-only data */
24 .empty_zero_page : AT(ADDR(.empty_zero_page)) {
28 .text : AT(ADDR(.text)) {
39 _etext = .; /* End of text section */
46 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
51 . = ALIGN(PAGE_SIZE); /* Init code and data */
53 INIT_TEXT_SECTION(PAGE_SIZE)
57 .machvec.init : AT(ADDR(.machvec.init)) {
63 PERCPU_SECTION(L1_CACHE_BYTES)
66 * .exit.text is discarded at runtime, not link time, to deal with
67 * references from __bug_table
69 .exit.text : AT(ADDR(.exit.text)) { EXIT_TEXT }
70 .exit.data : AT(ADDR(.exit.data)) { EXIT_DATA }
74 BSS_SECTION(0, PAGE_SIZE, 4)