1 /* ld script to make s390 Linux kernel
2 * Written by Martin Schwidefsky (schwidefsky@de.ibm.com)
6 #include <asm-generic/vmlinux.lds.h>
9 OUTPUT_FORMAT("elf32-s390", "elf32-s390", "elf32-s390")
12 jiffies = jiffies_64 + 4;
14 OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390")
15 OUTPUT_ARCH(s390:64-bit)
21 text PT_LOAD FLAGS(5); /* R_E */
22 data PT_LOAD FLAGS(7); /* RWE */
23 note PT_NOTE FLAGS(0); /* ___ */
30 _text = .; /* Text and read-only data */
40 _etext = .; /* End of text section */
47 #ifdef CONFIG_SHARED_KERNEL
48 . = ALIGN(0x100000); /* VM shared segments are 1MB aligned */
52 _eshared = .; /* End of shareable data */
54 . = ALIGN(16); /* Exception table */
56 __start___ex_table = .;
58 __stop___ex_table = .;
75 .data.page_aligned : {
80 .data.cacheline_aligned : {
81 *(.data.cacheline_aligned)
88 _edata = .; /* End of data section */
90 . = ALIGN(2 * PAGE_SIZE); /* init_task */
95 /* will be freed after init */
96 . = ALIGN(PAGE_SIZE); /* Init code and data */
104 * .exit.text is discarded at runtime, not link time,
105 * to deal with references from __bug_table
121 __initcall_start = .;
126 .con_initcall.init : {
127 __con_initcall_start = .;
128 *(.con_initcall.init)
129 __con_initcall_end = .;
133 #ifdef CONFIG_BLK_DEV_INITRD
136 __initramfs_start = .;
144 . = ALIGN(PAGE_SIZE);
145 __init_end = .; /* freed after init ends here */
157 /* Sections to be discarded */
163 /* Debugging sections. */