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)
24 _text = .; /* Text and read-only data */
34 _etext = .; /* End of text section */
38 #ifdef CONFIG_SHARED_KERNEL
39 . = ALIGN(0x100000); /* VM shared segments are 1MB aligned */
43 _eshared = .; /* End of shareable data */
45 . = ALIGN(16); /* Exception table */
47 __start___ex_table = .;
49 __stop___ex_table = .;
69 .data.page_aligned : {
74 .data.cacheline_aligned : {
75 *(.data.cacheline_aligned)
82 _edata = .; /* End of data section */
84 . = ALIGN(2 * PAGE_SIZE); /* init_task */
89 /* will be freed after init */
90 . = ALIGN(PAGE_SIZE); /* Init code and data */
98 * .exit.text is discarded at runtime, not link time,
99 * to deal with references from __bug_table
115 __initcall_start = .;
120 .con_initcall.init : {
121 __con_initcall_start = .;
122 *(.con_initcall.init)
123 __con_initcall_end = .;
127 #ifdef CONFIG_BLK_DEV_INITRD
130 __initramfs_start = .;
138 . = ALIGN(PAGE_SIZE);
139 __init_end = .; /* freed after init ends here */
151 /* Sections to be discarded */
157 /* Debugging sections. */