1 /* SPDX-License-Identifier: GPL-2.0 */ !! 1 #include <asm-generic/vmlinux.lds.h> 2 /* << 3 * ld script to make SuperH Linux kernel << 4 * Written by Niibe Yutaka and Paul Mundt << 5 */ << 6 OUTPUT_ARCH(sh) << 7 #define RUNTIME_DISCARD_EXIT << 8 #include <asm/thread_info.h> 2 #include <asm/thread_info.h> 9 #include <asm/cache.h> !! 3 #include <asm/page.h> 10 #include <asm/vmlinux.lds.h> << 11 4 12 #ifdef CONFIG_PMB !! 5 OUTPUT_FORMAT("elf64-alpha") 13 #define MEMORY_OFFSET 0 !! 6 OUTPUT_ARCH(alpha) 14 #else !! 7 ENTRY(__start) 15 #define MEMORY_OFFSET __MEMORY_START !! 8 PHDRS { kernel PT_LOAD; note PT_NOTE; } 16 #endif !! 9 jiffies = jiffies_64; 17 << 18 ENTRY(_start) << 19 SECTIONS 10 SECTIONS 20 { 11 { 21 . = PAGE_OFFSET + MEMORY_OFFSET + PHYS !! 12 #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS 22 !! 13 . = 0xfffffc0000310000; 23 _text = .; /* Text and re !! 14 #else 24 !! 15 . = 0xfffffc0001010000; 25 .empty_zero_page : AT(ADDR(.empty_zero !! 16 #endif 26 *(.empty_zero_page) << 27 } = 0 << 28 17 29 .text : AT(ADDR(.text)) { !! 18 _text = .; /* Text and read-only data */ >> 19 .text : { 30 HEAD_TEXT 20 HEAD_TEXT 31 TEXT_TEXT 21 TEXT_TEXT 32 SCHED_TEXT 22 SCHED_TEXT 33 LOCK_TEXT 23 LOCK_TEXT 34 KPROBES_TEXT << 35 IRQENTRY_TEXT << 36 SOFTIRQENTRY_TEXT << 37 *(.fixup) 24 *(.fixup) 38 *(.gnu.warning) 25 *(.gnu.warning) 39 _etext = .; /* End !! 26 } :kernel 40 } = 0x0009 !! 27 _etext = .; /* End of text section */ 41 << 42 EXCEPTION_TABLE(16) << 43 28 44 _sdata = .; !! 29 NOTES :kernel :note 45 RO_DATA(PAGE_SIZE) !! 30 .dummy : { 46 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THR !! 31 *(.dummy) 47 _edata = .; !! 32 } :kernel 48 33 49 DWARF_EH_FRAME !! 34 RODATA >> 35 EXCEPTION_TABLE(16) 50 36 51 . = ALIGN(PAGE_SIZE); /* Ini !! 37 /* Will be freed after init */ 52 __init_begin = .; !! 38 __init_begin = ALIGN(PAGE_SIZE); 53 INIT_TEXT_SECTION(PAGE_SIZE) 39 INIT_TEXT_SECTION(PAGE_SIZE) 54 INIT_DATA_SECTION(16) 40 INIT_DATA_SECTION(16) >> 41 PERCPU(PAGE_SIZE) >> 42 /* Align to THREAD_SIZE rather than PAGE_SIZE here so any padding page >> 43 needed for the THREAD_SIZE aligned init_task gets freed after init */ >> 44 . = ALIGN(THREAD_SIZE); >> 45 __init_end = .; >> 46 /* Freed after init ends here */ 55 47 56 . = ALIGN(4); !! 48 _data = .; 57 .machvec.init : AT(ADDR(.machvec.init) !! 49 RW_DATA_SECTION(64, PAGE_SIZE, THREAD_SIZE) 58 __machvec_start = .; << 59 *(.machvec.init) << 60 __machvec_end = .; << 61 } << 62 50 63 PERCPU_SECTION(L1_CACHE_BYTES) !! 51 .got : { >> 52 *(.got) >> 53 } >> 54 .sdata : { >> 55 *(.sdata) >> 56 } >> 57 _edata = .; /* End of data section */ 64 58 65 /* !! 59 BSS_SECTION(0, 0, 0) 66 * .exit.text is discarded at runtime, !! 60 _end = .; 67 * references from __bug_table << 68 */ << 69 .exit.text : AT(ADDR(.exit.text)) { EX << 70 .exit.data : AT(ADDR(.exit.data)) { EX << 71 61 72 . = ALIGN(PAGE_SIZE); !! 62 .mdebug 0 : { 73 __init_end = .; !! 63 *(.mdebug) 74 BSS_SECTION(0, PAGE_SIZE, 4) !! 64 } 75 _end = . ; !! 65 .note 0 : { >> 66 *(.note) >> 67 } 76 68 77 STABS_DEBUG 69 STABS_DEBUG 78 DWARF_DEBUG 70 DWARF_DEBUG 79 ELF_DETAILS << 80 71 81 DISCARDS 72 DISCARDS 82 } 73 }
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.