1 /* ld script to make s390 Linux kernel
2 * Written by Martin Schwidefsky (schwidefsky@de.ibm.com)
5 #include <asm/thread_info.h>
7 #include <asm-generic/vmlinux.lds.h>
9 OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390")
10 OUTPUT_ARCH(s390:64-bit)
15 text PT_LOAD FLAGS(5); /* R_E */
16 data PT_LOAD FLAGS(7); /* RWE */
17 note PT_NOTE FLAGS(0); /* ___ */
24 _text = .; /* Text and read-only data */
36 _etext = .; /* End of text section */
40 .dummy : { *(.dummy) } :data
42 RO_DATA_SECTION(PAGE_SIZE)
44 #ifdef CONFIG_SHARED_KERNEL
45 . = ALIGN(0x100000); /* VM shared segments are 1MB aligned */
49 _eshared = .; /* End of shareable data */
50 _sdata = .; /* Start of data section */
52 EXCEPTION_TABLE(16) :data
54 RW_DATA_SECTION(0x100, PAGE_SIZE, THREAD_SIZE)
56 _edata = .; /* End of data section */
58 /* will be freed after init */
59 . = ALIGN(PAGE_SIZE); /* Init code and data */
62 INIT_TEXT_SECTION(PAGE_SIZE)
65 * .exit.text is discarded at runtime, not link time,
66 * to deal with references from __bug_table
76 /* early.c uses stsi, which requires page aligned data. */
78 INIT_DATA_SECTION(0x100)
82 __init_end = .; /* freed after init ends here */
88 /* Debugging sections. */
92 /* Sections to be discarded */