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 */
39 _eshared = .; /* End of shareable data */
42 . = ALIGN(16); /* Exception table */
43 __start___ex_table = .;
44 __ex_table : { *(__ex_table) }
45 __stop___ex_table = .;
54 .data_nosave : { *(.data.nosave) }
59 .data.page_aligned : { *(.data.idt) }
62 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
65 .data.read_mostly : { *(.data.read_mostly) }
66 _edata = .; /* End of data section */
68 . = ALIGN(8192); /* init_task */
69 .data.init_task : { *(.data.init_task) }
71 /* will be freed after init */
72 . = ALIGN(4096); /* Init code and data */
79 .init.data : { *(.init.data) }
82 .init.setup : { *(.init.setup) }
89 __con_initcall_start = .;
90 .con_initcall.init : { *(.con_initcall.init) }
91 __con_initcall_end = .;
94 __initramfs_start = .;
95 .init.ramfs : { *(.init.initramfs) }
100 .data.percpu : { *(.data.percpu) }
104 /* freed after init ends here */
106 __bss_start = .; /* BSS */
113 /* Sections to be discarded */
115 *(.exit.text) *(.exit.data) *(.exitcall.exit)
118 /* Stabs debugging sections. */
119 .stab 0 : { *(.stab) }
120 .stabstr 0 : { *(.stabstr) }
121 .stab.excl 0 : { *(.stab.excl) }
122 .stab.exclstr 0 : { *(.stab.exclstr) }
123 .stab.index 0 : { *(.stab.index) }
124 .stab.indexstr 0 : { *(.stab.indexstr) }
125 .comment 0 : { *(.comment) }