1 /* ld script to make i386 Linux kernel
2 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>;
4 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
9 /* Read-only sections, merged into text segment: */
10 . = 0x60000000 + SIZEOF_HEADERS;
11 .interp : { *(.interp) }
13 .dynsym : { *(.dynsym) }
14 .dynstr : { *(.dynstr) }
15 .gnu.version : { *(.gnu.version) }
16 .gnu.version_d : { *(.gnu.version_d) }
17 .gnu.version_r : { *(.gnu.version_r) }
19 { *(.rel.text) *(.rel.gnu.linkonce.t*) }
21 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
23 { *(.rel.data) *(.rel.gnu.linkonce.d*) }
25 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
27 { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
29 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
30 .rel.got : { *(.rel.got) }
31 .rela.got : { *(.rela.got) }
32 .rel.ctors : { *(.rel.ctors) }
33 .rela.ctors : { *(.rela.ctors) }
34 .rel.dtors : { *(.rel.dtors) }
35 .rela.dtors : { *(.rela.dtors) }
36 .rel.init : { *(.rel.init) }
37 .rela.init : { *(.rela.init) }
38 .rel.fini : { *(.rel.fini) }
39 .rela.fini : { *(.rela.fini) }
40 .rel.bss : { *(.rel.bss) }
41 .rela.bss : { *(.rela.bss) }
42 .rel.plt : { *(.rel.plt) }
43 .rela.plt : { *(.rela.plt) }
44 .init : { *(.init) } =0x47ff041f
48 /* .gnu.warning sections are handled specially by elf32.em. */
54 .fini : { *(.fini) } =0x47ff041f
56 PROVIDE (__preinit_array_start = .);
57 .preinit_array : { *(.preinit_array) }
58 PROVIDE (__preinit_array_end = .);
59 PROVIDE (__init_array_start = .);
60 .init_array : { *(.init_array) }
61 PROVIDE (__init_array_end = .);
62 PROVIDE (__fini_array_start = .);
63 .fini_array : { *(.fini_array) }
64 PROVIDE (__fini_array_end = .);
65 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
66 .rodata1 : { *(.rodata1) }
67 .reginfo : { *(.reginfo) }
68 /* Adjust the address for the data segment. We want to adjust up to
69 the same address within the page on the next page up. */
70 . = ALIGN(0x100000) + (. & (0x100000 - 1));
71 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
72 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
79 .data1 : { *(.data1) }
89 .got : { *(.got.plt) *(.got) }
90 .dynamic : { *(.dynamic) }
91 /* We want the small data sections together, so single-instruction offsets
92 can access them all, and initialized data all before uninitialized, so
93 we can shorten the on-disk segment size. */
94 .sdata : { *(.sdata) }
98 .sbss : { *(.sbss) *(.scommon) }
107 /* Stabs debugging sections. */
108 .stab 0 : { *(.stab) }
109 .stabstr 0 : { *(.stabstr) }
110 .stab.excl 0 : { *(.stab.excl) }
111 .stab.exclstr 0 : { *(.stab.exclstr) }
112 .stab.index 0 : { *(.stab.index) }
113 .stab.indexstr 0 : { *(.stab.indexstr) }
114 .comment 0 : { *(.comment) }
115 /* DWARF debug sections.
116 Symbols in the DWARF debugging sections are relative to the beginning
117 of the section so we begin them at 0. */
119 .debug 0 : { *(.debug) }
120 .line 0 : { *(.line) }
121 /* GNU DWARF 1 extensions */
122 .debug_srcinfo 0 : { *(.debug_srcinfo) }
123 .debug_sfnames 0 : { *(.debug_sfnames) }
124 /* DWARF 1.1 and DWARF 2 */
125 .debug_aranges 0 : { *(.debug_aranges) }
126 .debug_pubnames 0 : { *(.debug_pubnames) }
128 .debug_info 0 : { *(.debug_info) }
129 .debug_abbrev 0 : { *(.debug_abbrev) }
130 .debug_line 0 : { *(.debug_line) }
131 .debug_frame 0 : { *(.debug_frame) }
132 .debug_str 0 : { *(.debug_str) }
133 .debug_loc 0 : { *(.debug_loc) }
134 .debug_macinfo 0 : { *(.debug_macinfo) }
135 /* SGI/MIPS DWARF 2 extensions */
136 .debug_weaknames 0 : { *(.debug_weaknames) }
137 .debug_funcnames 0 : { *(.debug_funcnames) }
138 .debug_typenames 0 : { *(.debug_typenames) }
139 .debug_varnames 0 : { *(.debug_varnames) }
140 /* These must appear regardless of . */