^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #include <asm-generic/vmlinux.lds.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #include <asm/vmlinux.lds.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) OUTPUT_ARCH(s390:64-bit)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) ENTRY(startup)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) SECTIONS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) . = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) .head.text : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) _head = . ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) HEAD_TEXT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) _ehead = . ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) .text : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) _text = .; /* Text */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) *(.text)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) *(.text.*)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) _etext = . ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) .rodata : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) _rodata = . ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) *(.rodata) /* read-only data */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) *(.rodata.*)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) _erodata = . ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) .data : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) _data = . ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) *(.data)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) *(.data.*)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) _edata = . ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) * .dma section for code, data, ex_table that need to stay below 2 GB,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) * even when the kernel is relocate: above 2 GB.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) . = ALIGN(PAGE_SIZE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) _sdma = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) .dma.text : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) _stext_dma = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) *(.dma.text)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) . = ALIGN(PAGE_SIZE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) _etext_dma = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) . = ALIGN(16);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) .dma.ex_table : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) _start_dma_ex_table = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) KEEP(*(.dma.ex_table))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) _stop_dma_ex_table = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) .dma.data : { *(.dma.data) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) . = ALIGN(PAGE_SIZE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) _edma = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) BOOT_DATA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) BOOT_DATA_PRESERVED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) * This is the BSS section of the decompressor and not of the decompressed Linux kernel.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) * It will consume place in the decompressor's image.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) . = ALIGN(8);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) .bss : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) _bss = . ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) *(.bss)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) *(.bss.*)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) *(COMMON)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) _ebss = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) * uncompressed image info used by the decompressor it should match
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) * struct vmlinux_info. It comes from .vmlinux.info section of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) * uncompressed vmlinux in a form of info.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) . = ALIGN(8);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) .vmlinux.info : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) _vmlinux_info = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) *(.vmlinux.info)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) #ifdef CONFIG_KERNEL_UNCOMPRESSED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) . = 0x100000;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) . = ALIGN(8);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) .rodata.compressed : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) _compressed_start = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) *(.vmlinux.bin.compressed)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) _compressed_end = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) FILL(0xff);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) . = ALIGN(4096);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) _end = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) /* Sections to be discarded */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) /DISCARD/ : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) *(.eh_frame)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) *(__ex_table)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) *(*__ksymtab*)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) *(___kcrctab*)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) }