1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* ld script to make m68k Linux kernel */ 3 4 #include <asm-generic/vmlinux.lds.h> 5 #include <asm/page.h> 6 #include <asm/thread_info.h> 7 8 OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf 9 OUTPUT_ARCH(m68k) 10 ENTRY(_start) 11 jiffies = jiffies_64 + 4; 12 SECTIONS 13 { 14 . = 0xE002000; 15 _text = .; /* Text and re 16 .text : { 17 HEAD_TEXT 18 TEXT_TEXT 19 IRQENTRY_TEXT 20 SOFTIRQENTRY_TEXT 21 SCHED_TEXT 22 LOCK_TEXT 23 *(.fixup) 24 *(.gnu.warning) 25 } :text = 0x4e75 26 RO_DATA(4096) 27 28 _etext = .; /* End of text 29 30 EXCEPTION_TABLE(16) :data 31 _sdata = .; /* Start of rw 32 RW_DATA(16, PAGE_SIZE, THREAD_SIZE) :data 33 /* End of data goes *here* so that freeing i 34 _edata = .; 35 36 /* will be freed after init */ 37 . = ALIGN(PAGE_SIZE); /* Init code and data 38 __init_begin = .; 39 INIT_TEXT_SECTION(PAGE_SIZE) 40 INIT_DATA_SECTION(16) 41 .m68k_fixup : { 42 __start_fixup = .; 43 *(.m68k_fixup) 44 __stop_fixup = .; 45 } 46 . = ALIGN(PAGE_SIZE); 47 __init_end = .; 48 49 BSS_SECTION(0, 0, 0) 50 51 _end = . ; 52 53 STABS_DEBUG 54 ELF_DETAILS 55 56 /* Sections to be discarded */ 57 DISCARDS 58 }
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.