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)
22 _text = .; /* Text and read-only data */
32 _etext = .; /* End of text section */
36 #ifdef CONFIG_SHARED_KERNEL
37 . = ALIGN(1048576); /* VM shared segments are 1MB aligned */
41 _eshared = .; /* End of shareable data */
43 . = ALIGN(16); /* Exception table */
44 __start___ex_table = .;
45 __ex_table : { *(__ex_table) }
46 __stop___ex_table = .;
55 .data_nosave : { *(.data.nosave) }
60 .data.page_aligned : { *(.data.idt) }
63 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
66 .data.read_mostly : { *(.data.read_mostly) }
67 _edata = .; /* End of data section */
69 . = ALIGN(8192); /* init_task */
70 .data.init_task : { *(.data.init_task) }
72 /* will be freed after init */
73 . = ALIGN(4096); /* Init code and data */
80 .init.data : { *(.init.data) }
83 .init.setup : { *(.init.setup) }
90 __con_initcall_start = .;
91 .con_initcall.init : { *(.con_initcall.init) }
92 __con_initcall_end = .;
95 #ifdef CONFIG_BLK_DEV_INITRD
97 __initramfs_start = .;
98 .init.ramfs : { *(.init.initramfs) }
104 .data.percpu : { *(.data.percpu) }
108 /* freed after init ends here */
110 __bss_start = .; /* BSS */
117 /* Sections to be discarded */
119 *(.exit.text) *(.exit.data) *(.exitcall.exit)
122 /* Stabs debugging sections. */
123 .stab 0 : { *(.stab) }
124 .stabstr 0 : { *(.stabstr) }
125 .stab.excl 0 : { *(.stab.excl) }
126 .stab.exclstr 0 : { *(.stab.exclstr) }
127 .stab.index 0 : { *(.stab.index) }
128 .stab.indexstr 0 : { *(.stab.indexstr) }
129 .comment 0 : { *(.comment) }