1 /* SPDX-License-Identifier: GPL-2.0 */ !! 1 /* ld script to make SparcLinux kernel */ 2 #if defined(CONFIG_MMU) && !defined(CONFIG_COL !! 2 3 PHDRS !! 3 #include <asm-generic/vmlinux.lds.h> >> 4 >> 5 OUTPUT_FORMAT("elf32-sparc", "elf32-sparc", "elf32-sparc") >> 6 OUTPUT_ARCH(sparc) >> 7 ENTRY(_start) >> 8 jiffies = jiffies_64 + 4; >> 9 SECTIONS 4 { 10 { 5 text PT_LOAD FILEHDR PHDRS FLAGS (7); !! 11 . = 0x10000 + SIZEOF_HEADERS; 6 data PT_LOAD FLAGS (7); !! 12 .text 0xf0004000 : >> 13 { >> 14 *(.text) >> 15 *(.gnu.warning) >> 16 } =0 >> 17 _etext = .; >> 18 PROVIDE (etext = .); >> 19 RODATA >> 20 .data : >> 21 { >> 22 *(.data) >> 23 CONSTRUCTORS >> 24 } >> 25 .data1 : { *(.data1) } >> 26 _edata = .; >> 27 PROVIDE (edata = .); >> 28 __start___fixup = .; >> 29 .fixup : { *(.fixup) } >> 30 __stop___fixup = .; >> 31 __start___ex_table = .; >> 32 __ex_table : { *(__ex_table) } >> 33 __stop___ex_table = .; >> 34 >> 35 . = ALIGN(4096); >> 36 __init_begin = .; >> 37 .init.text : { >> 38 _sinittext = .; >> 39 *(.init.text) >> 40 _einittext = .; >> 41 } >> 42 __init_text_end = .; >> 43 .init.data : { *(.init.data) } >> 44 . = ALIGN(16); >> 45 __setup_start = .; >> 46 .init.setup : { *(.init.setup) } >> 47 __setup_end = .; >> 48 __start___param = .; >> 49 __param : { *(__param) } >> 50 __stop___param = .; >> 51 __initcall_start = .; >> 52 .initcall.init : { >> 53 *(.initcall1.init) >> 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) } 7 } 104 } 8 #ifdef CONFIG_SUN3 << 9 #include "vmlinux-sun3.lds" << 10 #else << 11 #include "vmlinux-std.lds" << 12 #endif << 13 #else << 14 #include "vmlinux-nommu.lds" << 15 #endif <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.