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>
10 OUTPUT_FORMAT("elf32-s390", "elf32-s390", "elf32-s390")
13 jiffies = jiffies_64 + 4;
15 OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390")
16 OUTPUT_ARCH(s390:64-bit)
22 text PT_LOAD FLAGS(5); /* R_E */
23 data PT_LOAD FLAGS(7); /* RWE */
24 note PT_NOTE FLAGS(0); /* ___ */
31 _text = .; /* Text and read-only data */
42 _etext = .; /* End of text section */
48 #ifdef CONFIG_SHARED_KERNEL
49 . = ALIGN(0x100000); /* VM shared segments are 1MB aligned */
53 _eshared = .; /* End of shareable data */
55 . = ALIGN(16); /* Exception table */
57 __start___ex_table = .;
59 __stop___ex_table = .;
76 .data.page_aligned : {
81 .data.cacheline_aligned : {
82 *(.data.cacheline_aligned)
89 _edata = .; /* End of data section */
91 . = ALIGN(THREAD_SIZE); /* init_task */
96 /* will be freed after init */
97 . = ALIGN(PAGE_SIZE); /* Init code and data */
105 * .exit.text is discarded at runtime, not link time,
106 * to deal with references from __bug_table
112 /* early.c uses stsi, which requires page aligned data. */
113 . = ALIGN(PAGE_SIZE);
124 __initcall_start = .;
129 .con_initcall.init : {
130 __con_initcall_start = .;
131 *(.con_initcall.init)
132 __con_initcall_end = .;
136 #ifdef CONFIG_BLK_DEV_INITRD
139 __initramfs_start = .;
147 . = ALIGN(PAGE_SIZE);
148 __init_end = .; /* freed after init ends here */
160 /* Sections to be discarded */
166 /* Debugging sections. */