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