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 */
31 _etext = .; /* End of text section */
33 . = ALIGN(16); /* Exception table */
34 __start___ex_table = .;
35 __ex_table : { *(__ex_table) }
36 __stop___ex_table = .;
40 #ifdef CONFIG_SHARED_KERNEL
41 . = ALIGN(1048576); /* VM shared segments are 1MB aligned */
43 _eshared = .; /* End of shareable data */
53 .data_nosave : { *(.data.nosave) }
58 .data.page_aligned : { *(.data.idt) }
61 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
64 .data.read_mostly : { *(.data.read_mostly) }
65 _edata = .; /* End of data section */
67 . = ALIGN(8192); /* init_task */
68 .data.init_task : { *(.data.init_task) }
70 /* will be freed after init */
71 . = ALIGN(4096); /* Init code and data */
78 .init.data : { *(.init.data) }
81 .init.setup : { *(.init.setup) }
94 __con_initcall_start = .;
95 .con_initcall.init : { *(.con_initcall.init) }
96 __con_initcall_end = .;
99 __initramfs_start = .;
100 .init.ramfs : { *(.init.initramfs) }
105 .data.percpu : { *(.data.percpu) }
109 /* freed after init ends here */
111 __bss_start = .; /* BSS */
118 /* Sections to be discarded */
123 /* Stabs debugging sections. */
124 .stab 0 : { *(.stab) }
125 .stabstr 0 : { *(.stabstr) }
126 .stab.excl 0 : { *(.stab.excl) }
127 .stab.exclstr 0 : { *(.stab.exclstr) }
128 .stab.index 0 : { *(.stab.index) }
129 .stab.indexstr 0 : { *(.stab.indexstr) }
130 .comment 0 : { *(.comment) }