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