1 /* ld script to make i386 Linux kernel
2 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>;
5 #include <asm-generic/vmlinux.lds.h>
6 #include <asm/thread_info.h>
8 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
14 . = 0xC0000000 + 0x100000;
16 _text = .; /* Text and read-only data */
24 _etext = .; /* End of text section */
26 . = ALIGN(16); /* Exception table */
27 __start___ex_table = .;
28 __ex_table : { *(__ex_table) }
29 __stop___ex_table = .;
41 .data_nosave : { *(.data.nosave) }
46 .data.page_aligned : { *(.data.idt) }
49 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
51 _edata = .; /* End of data section */
53 . = ALIGN(THREAD_SIZE); /* init_task */
54 .data.init_task : { *(.data.init_task) }
56 /* will be freed after init */
57 . = ALIGN(4096); /* Init code and data */
64 .init.data : { *(.init.data) }
67 .init.setup : { *(.init.setup) }
70 __param : { *(__param) }
83 __con_initcall_start = .;
84 .con_initcall.init : { *(.con_initcall.init) }
85 __con_initcall_end = .;
88 __alt_instructions = .;
89 .altinstructions : { *(.altinstructions) }
90 __alt_instructions_end = .;
91 .altinstr_replacement : { *(.altinstr_replacement) }
92 /* .exit.text is discard at runtime, not link time, to deal with references
93 from .altinstructions and .eh_frame */
94 .exit.text : { *(.exit.text) }
95 .exit.data : { *(.exit.data) }
97 __initramfs_start = .;
98 .init.ramfs : { *(.init.ramfs) }
102 .data.percpu : { *(.data.percpu) }
106 /* freed after init ends here */
108 __bss_start = .; /* BSS */
118 /* This is where the kernel creates the early boot page tables */
122 /* Sections to be discarded */
127 /* Stabs debugging sections. */
128 .stab 0 : { *(.stab) }
129 .stabstr 0 : { *(.stabstr) }
130 .stab.excl 0 : { *(.stab.excl) }
131 .stab.exclstr 0 : { *(.stab.exclstr) }
132 .stab.index 0 : { *(.stab.index) }
133 .stab.indexstr 0 : { *(.stab.indexstr) }
134 .comment 0 : { *(.comment) }