Kyle Swenson | 8d8f654 | 2021-03-15 11:02:55 -0600 | [diff] [blame^] | 1 | #include <asm-generic/vmlinux.lds.h> |
| 2 | |
| 3 | OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390") |
| 4 | OUTPUT_ARCH(s390:64-bit) |
| 5 | |
| 6 | ENTRY(startup) |
| 7 | |
| 8 | SECTIONS |
| 9 | { |
| 10 | /* Be careful parts of head_64.S assume startup_32 is at |
| 11 | * address 0. |
| 12 | */ |
| 13 | . = 0; |
| 14 | .head.text : { |
| 15 | _head = . ; |
| 16 | HEAD_TEXT |
| 17 | _ehead = . ; |
| 18 | } |
| 19 | .rodata.compressed : { |
| 20 | *(.rodata.compressed) |
| 21 | } |
| 22 | .text : { |
| 23 | _text = .; /* Text */ |
| 24 | *(.text) |
| 25 | *(.text.*) |
| 26 | _etext = . ; |
| 27 | } |
| 28 | .rodata : { |
| 29 | _rodata = . ; |
| 30 | *(.rodata) /* read-only data */ |
| 31 | *(.rodata.*) |
| 32 | _erodata = . ; |
| 33 | } |
| 34 | .data : { |
| 35 | _data = . ; |
| 36 | *(.data) |
| 37 | *(.data.*) |
| 38 | _edata = . ; |
| 39 | } |
| 40 | . = ALIGN(256); |
| 41 | .bss : { |
| 42 | _bss = . ; |
| 43 | *(.bss) |
| 44 | *(.bss.*) |
| 45 | *(COMMON) |
| 46 | . = ALIGN(8); /* For convenience during zeroing */ |
| 47 | _ebss = .; |
| 48 | } |
| 49 | _end = .; |
| 50 | } |