1 /* SPDX-License-Identifier: GPL-2.0-or-later * !! 1 /* ld script to make SparcLinux kernel */ 2 /* << 3 * Copyright (C) 2009 Thomas Chou <thomas@wytro << 4 */ << 5 #include <asm/page.h> << 6 #include <asm-generic/vmlinux.lds.h> << 7 #include <asm/cache.h> << 8 #include <asm/thread_info.h> << 9 << 10 OUTPUT_FORMAT("elf32-littlenios2", "elf32-litt << 11 << 12 OUTPUT_ARCH(nios) << 13 ENTRY(_start) /* Defined in head.S */ << 14 2 15 jiffies = jiffies_64; !! 3 #include <asm-generic/vmlinux.lds.h> 16 4 >> 5 OUTPUT_FORMAT("elf32-sparc", "elf32-sparc", "elf32-sparc") >> 6 OUTPUT_ARCH(sparc) >> 7 ENTRY(_start) >> 8 jiffies = jiffies_64 + 4; 17 SECTIONS 9 SECTIONS 18 { 10 { 19 . = CONFIG_NIOS2_MEM_BASE | CONFIG_NIO !! 11 . = 0x10000 + SIZEOF_HEADERS; 20 !! 12 .text 0xf0004000 : 21 _text = .; !! 13 { 22 _stext = .; !! 14 *(.text) 23 HEAD_TEXT_SECTION !! 15 *(.gnu.warning) 24 .text : { !! 16 } =0 25 TEXT_TEXT !! 17 _etext = .; 26 SCHED_TEXT !! 18 PROVIDE (etext = .); 27 LOCK_TEXT !! 19 RODATA 28 IRQENTRY_TEXT !! 20 .data : 29 SOFTIRQENTRY_TEXT !! 21 { 30 KPROBES_TEXT !! 22 *(.data) 31 } =0 !! 23 CONSTRUCTORS 32 _etext = .; !! 24 } 33 !! 25 .data1 : { *(.data1) } 34 .got : { !! 26 _edata = .; 35 *(.got.plt) !! 27 PROVIDE (edata = .); 36 *(.igot.plt) !! 28 __start___fixup = .; 37 *(.got) !! 29 .fixup : { *(.fixup) } 38 *(.igot) !! 30 __stop___fixup = .; 39 } !! 31 __start___ex_table = .; 40 !! 32 __ex_table : { *(__ex_table) } 41 EXCEPTION_TABLE(L1_CACHE_BYTES) !! 33 __stop___ex_table = .; 42 !! 34 43 . = ALIGN(PAGE_SIZE); !! 35 . = ALIGN(4096); 44 __init_begin = .; !! 36 __init_begin = .; 45 INIT_TEXT_SECTION(PAGE_SIZE) !! 37 .init.text : { 46 INIT_DATA_SECTION(PAGE_SIZE) !! 38 _sinittext = .; 47 PERCPU_SECTION(L1_CACHE_BYTES) !! 39 *(.init.text) 48 __init_end = .; !! 40 _einittext = .; 49 !! 41 } 50 _sdata = .; !! 42 __init_text_end = .; 51 RO_DATA(PAGE_SIZE) !! 43 .init.data : { *(.init.data) } 52 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THR !! 44 . = ALIGN(16); 53 _edata = .; !! 45 __setup_start = .; 54 !! 46 .init.setup : { *(.init.setup) } 55 BSS_SECTION(0, 0, 0) !! 47 __setup_end = .; 56 _end = .; !! 48 __start___param = .; 57 !! 49 __param : { *(__param) } 58 STABS_DEBUG !! 50 __stop___param = .; 59 DWARF_DEBUG !! 51 __initcall_start = .; 60 ELF_DETAILS !! 52 .initcall.init : { 61 !! 53 *(.initcall1.init) 62 DISCARDS !! 54 *(.initcall2.init) >> 55 *(.initcall3.init) >> 56 *(.initcall4.init) >> 57 *(.initcall5.init) >> 58 *(.initcall6.init) >> 59 *(.initcall7.init) >> 60 } >> 61 __initcall_end = .; >> 62 __con_initcall_start = .; >> 63 .con_initcall.init : { *(.con_initcall.init) } >> 64 __con_initcall_end = .; >> 65 SECURITY_INIT >> 66 . = ALIGN(4096); >> 67 __initramfs_start = .; >> 68 .init.ramfs : { *(.init.ramfs) } >> 69 __initramfs_end = .; >> 70 . = ALIGN(32); >> 71 __per_cpu_start = .; >> 72 .data.percpu : { *(.data.percpu) } >> 73 __per_cpu_end = .; >> 74 . = ALIGN(4096); >> 75 __init_end = .; >> 76 . = ALIGN(32); >> 77 .data.cacheline_aligned : { *(.data.cacheline_aligned) } >> 78 >> 79 __bss_start = .; >> 80 .sbss : { *(.sbss) *(.scommon) } >> 81 .bss : >> 82 { >> 83 *(.dynbss) >> 84 *(.bss) >> 85 *(COMMON) >> 86 } >> 87 _end = . ; >> 88 PROVIDE (end = .); >> 89 /* Stabs debugging sections. */ >> 90 .stab 0 : { *(.stab) } >> 91 .stabstr 0 : { *(.stabstr) } >> 92 .stab.excl 0 : { *(.stab.excl) } >> 93 .stab.exclstr 0 : { *(.stab.exclstr) } >> 94 .stab.index 0 : { *(.stab.index) } >> 95 .stab.indexstr 0 : { *(.stab.indexstr) } >> 96 .comment 0 : { *(.comment) } >> 97 .debug 0 : { *(.debug) } >> 98 .debug_srcinfo 0 : { *(.debug_srcinfo) } >> 99 .debug_aranges 0 : { *(.debug_aranges) } >> 100 .debug_pubnames 0 : { *(.debug_pubnames) } >> 101 .debug_sfnames 0 : { *(.debug_sfnames) } >> 102 .line 0 : { *(.line) } >> 103 /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) } 63 } 104 }
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.