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 */
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 */
45 __start___ex_table = .;
46 __ex_table : { *(__ex_table) }
47 __stop___ex_table = .;
60 .data_nosave : { *(.data.nosave) }
65 .data.page_aligned : { *(.data.idt) }
68 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
71 .data.read_mostly : { *(.data.read_mostly) }
72 _edata = .; /* End of data section */
74 . = ALIGN(8192); /* init_task */
75 .data.init_task : { *(.data.init_task) }
77 /* will be freed after init */
78 . = ALIGN(4096); /* Init code and data */
86 * .exit.text is discarded at runtime, not link time,
87 * to deal with references from __bug_table
89 .exit.text : { *(.exit.text) }
91 .init.data : { *(.init.data) }
94 .init.setup : { *(.init.setup) }
101 __con_initcall_start = .;
102 .con_initcall.init : { *(.con_initcall.init) }
103 __con_initcall_end = .;
106 #ifdef CONFIG_BLK_DEV_INITRD
108 __initramfs_start = .;
109 .init.ramfs : { *(.init.initramfs) }
116 /* freed after init ends here */
118 __bss_start = .; /* BSS */
125 /* Sections to be discarded */
127 *(.exit.data) *(.exitcall.exit)
130 /* Stabs debugging sections. */
131 .stab 0 : { *(.stab) }
132 .stabstr 0 : { *(.stabstr) }
133 .stab.excl 0 : { *(.stab.excl) }
134 .stab.exclstr 0 : { *(.stab.exclstr) }
135 .stab.index 0 : { *(.stab.index) }
136 .stab.indexstr 0 : { *(.stab.indexstr) }
137 .comment 0 : { *(.comment) }