1/* SPDX-License-Identifier: GPL-2.0 */ 2#include <asm-generic/vmlinux.lds.h> 3 4OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390") 5OUTPUT_ARCH(s390:64-bit) 6 7ENTRY(startup) 8 9SECTIONS 10{ 11 /* Be careful parts of head_64.S assume startup_32 is at 12 * address 0. 13 */ 14 . = 0; 15 .head.text : { 16 _head = . ; 17 HEAD_TEXT 18 _ehead = . ; 19 } 20 .text : { 21 _text = .; /* Text */ 22 *(.text) 23 *(.text.*) 24 _etext = . ; 25 } 26 .rodata : { 27 _rodata = . ; 28 *(.rodata) /* read-only data */ 29 *(EXCLUDE_FILE (*piggy.o) .rodata.compressed) 30 _erodata = . ; 31 } 32 .data : { 33 _data = . ; 34 *(.data) 35 *(.data.*) 36 _edata = . ; 37 } 38 startup_continue = 0x100000; 39#ifdef CONFIG_KERNEL_UNCOMPRESSED 40 . = 0x100000; 41#else 42 . = ALIGN(8); 43#endif 44 .rodata.compressed : { 45 *(.rodata.compressed) 46 } 47 . = ALIGN(256); 48 .bss : { 49 _bss = . ; 50 *(.bss) 51 *(.bss.*) 52 *(COMMON) 53 . = ALIGN(8); /* For convenience during zeroing */ 54 _ebss = .; 55 } 56 _end = .; 57 58 /* Sections to be discarded */ 59 /DISCARD/ : { 60 *(.eh_frame) 61 *(__ex_table) 62 *(*__ksymtab*) 63 *(___kcrctab*) 64 } 65} 66