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>
9 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
15 . = __PAGE_OFFSET + 0x100000;
17 _text = .; /* Text and read-only data */
26 _etext = .; /* End of text section */
28 . = ALIGN(16); /* Exception table */
29 __start___ex_table = .;
30 __ex_table : { *(__ex_table) }
31 __stop___ex_table = .;
43 .data_nosave : { *(.data.nosave) }
48 .data.page_aligned : { *(.data.idt) }
51 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
53 _edata = .; /* End of data section */
55 . = ALIGN(THREAD_SIZE); /* init_task */
56 .data.init_task : { *(.data.init_task) }
58 /* will be freed after init */
59 . = ALIGN(4096); /* Init code and data */
66 .init.data : { *(.init.data) }
69 .init.setup : { *(.init.setup) }
82 __con_initcall_start = .;
83 .con_initcall.init : { *(.con_initcall.init) }
84 __con_initcall_end = .;
87 __alt_instructions = .;
88 .altinstructions : { *(.altinstructions) }
89 __alt_instructions_end = .;
90 .altinstr_replacement : { *(.altinstr_replacement) }
91 /* .exit.text is discard at runtime, not link time, to deal with references
92 from .altinstructions and .eh_frame */
93 .exit.text : { *(.exit.text) }
94 .exit.data : { *(.exit.data) }
96 __initramfs_start = .;
97 .init.ramfs : { *(.init.ramfs) }
101 .data.percpu : { *(.data.percpu) }
105 /* freed after init ends here */
107 __bss_start = .; /* BSS */
117 /* This is where the kernel creates the early boot page tables */
121 /* Sections to be discarded */
126 /* Stabs debugging sections. */
127 .stab 0 : { *(.stab) }
128 .stabstr 0 : { *(.stabstr) }
129 .stab.excl 0 : { *(.stab.excl) }
130 .stab.exclstr 0 : { *(.stab.exclstr) }
131 .stab.index 0 : { *(.stab.index) }
132 .stab.indexstr 0 : { *(.stab.indexstr) }
133 .comment 0 : { *(.comment) }