1 /* ld script to make s390 Linux kernel
2 * Written by Martin Schwidefsky (schwidefsky@de.ibm.com)
5 #include <asm-generic/vmlinux.lds.h>
8 OUTPUT_FORMAT("elf32-s390", "elf32-s390", "elf32-s390")
11 jiffies = jiffies_64 + 4;
13 OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390")
14 OUTPUT_ARCH(s390:64-bit)
23 _text = .; /* Text and read-only data */
33 _etext = .; /* End of text section */
37 #ifdef CONFIG_SHARED_KERNEL
38 . = ALIGN(1048576); /* VM shared segments are 1MB aligned */
42 _eshared = .; /* End of shareable data */
44 . = ALIGN(16); /* Exception table */
46 __start___ex_table = .;
48 __stop___ex_table = .;
68 .data.page_aligned : {
73 .data.cacheline_aligned : {
74 *(.data.cacheline_aligned)
81 _edata = .; /* End of data section */
83 . = ALIGN(8192); /* init_task */
88 /* will be freed after init */
89 . = ALIGN(4096); /* Init code and data */
97 * .exit.text is discarded at runtime, not link time,
98 * to deal with references from __bug_table
114 __initcall_start = .;
119 .con_initcall.init : {
120 __con_initcall_start = .;
121 *(.con_initcall.init)
122 __con_initcall_end = .;
126 #ifdef CONFIG_BLK_DEV_INITRD
129 __initramfs_start = .;
138 __init_end = .; /* freed after init ends here */
150 /* Sections to be discarded */
156 /* Debugging sections. */