1 OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd", "elf32-i386-freebsd")
7 /* Read-only sections, merged into text segment: */
8 . = kernbase + SIZEOF_HEADERS;
9 .interp : { *(.interp) }
11 .gnu.hash : { *(.gnu.hash) }
12 .dynsym : { *(.dynsym) }
13 .dynstr : { *(.dynstr) }
14 .gnu.version : { *(.gnu.version) }
15 .gnu.version_d : { *(.gnu.version_d) }
16 .gnu.version_r : { *(.gnu.version_r) }
17 .rel.init : { *(.rel.init) }
18 .rela.init : { *(.rela.init) }
19 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) }
20 .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
21 .rel.fini : { *(.rel.fini) }
22 .rela.fini : { *(.rela.fini) }
23 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }
24 .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
25 .rel.data.rel.ro : { *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*) }
26 .rela.data.rel.ro : { *(.rela.data.rel.ro* .rela.gnu.linkonce.d.rel.ro.*) }
27 .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) }
28 .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
29 .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
30 .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
31 .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
32 .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
33 .rel.ctors : { *(.rel.ctors) }
34 .rela.ctors : { *(.rela.ctors) }
35 .rel.dtors : { *(.rel.dtors) }
36 .rela.dtors : { *(.rela.dtors) }
37 .rel.got : { *(.rel.got) }
38 .rela.got : { *(.rela.got) }
39 .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
40 .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
41 .rel.plt : { *(.rel.plt) }
42 .rela.plt : { *(.rela.plt) }
50 *(.text .stub .text.* .gnu.linkonce.t.*)
51 KEEP (*(.text.*personality*))
52 /* .gnu.warning sections are handled specially by elf32.em. */
59 PROVIDE (__etext = .);
62 .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
63 .rodata1 : { *(.rodata1) }
64 .note.gnu.build-id : {
65 PROVIDE (__build_id_start = .);
67 PROVIDE (__build_id_end = .);
69 .eh_frame_hdr : { *(.eh_frame_hdr) }
70 .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
71 .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }
72 /* Adjust the address for the data segment. We want to adjust up to
73 the same address within the page on the next page up. */
74 . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) & (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
75 /* Exception handling */
76 .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
77 .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
78 /* Thread Local Storage sections */
79 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
80 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
83 PROVIDE_HIDDEN (__preinit_array_start = .);
84 KEEP (*(.preinit_array))
85 PROVIDE_HIDDEN (__preinit_array_end = .);
89 PROVIDE_HIDDEN (__init_array_start = .);
90 KEEP (*(SORT(.init_array.*)))
92 PROVIDE_HIDDEN (__init_array_end = .);
96 PROVIDE_HIDDEN (__fini_array_start = .);
98 KEEP (*(SORT(.fini_array.*)))
99 PROVIDE_HIDDEN (__fini_array_end = .);
102 PROVIDE (start_ctors = .);
105 /* gcc uses crtbegin.o to find the start of
106 the constructors, so we make sure it is
107 first. Because this is a wildcard, it
108 doesn't matter if the user does not
109 actually link against crtbegin.o; the
110 linker won't look for a file to match a
111 wildcard. The wildcard also means that it
112 doesn't matter which directory crtbegin.o
114 KEEP (*crtbegin.o(.ctors))
115 KEEP (*crtbegin?.o(.ctors))
116 /* We don't want to include the .ctor section from
117 the crtend.o file until after the sorted ctors.
118 The .ctor section from the crtend file contains the
119 end of ctors marker and it must be last */
120 KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
121 KEEP (*(SORT(.ctors.*)))
125 PROVIDE (stop_ctors = .);
128 KEEP (*crtbegin.o(.dtors))
129 KEEP (*crtbegin?.o(.dtors))
130 KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
131 KEEP (*(SORT(.dtors.*)))
134 .jcr : { KEEP (*(.jcr)) }
135 .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }
136 .dynamic : { *(.dynamic) }
138 . = DATA_SEGMENT_RELRO_END (12, .);
139 .got.plt : { *(.got.plt) }
142 *(.data .data.* .gnu.linkonce.d.*)
143 KEEP (*(.gnu.linkonce.d.*personality*))
145 .data1 : { *(.data1) }
146 _edata = .; PROVIDE (edata = .);
151 *(.bss .bss.* .gnu.linkonce.b.*)
153 /* Align here to ensure that the .bss section occupies space up to
154 _end. Align after .bss to ensure correct alignment even if the
155 .bss section disappears because there are no input sections.
156 FIXME: Why do we need it? When there is no .bss section, we don't
157 pad the .data section. */
158 . = ALIGN(. != 0 ? 32 / 8 : 1);
163 _end = .; PROVIDE (end = .);
164 . = DATA_SEGMENT_END (.);
165 /* Stabs debugging sections. */
166 .stab 0 : { *(.stab) }
167 .stabstr 0 : { *(.stabstr) }
168 .stab.excl 0 : { *(.stab.excl) }
169 .stab.exclstr 0 : { *(.stab.exclstr) }
170 .stab.index 0 : { *(.stab.index) }
171 .stab.indexstr 0 : { *(.stab.indexstr) }
172 .comment 0 : { *(.comment) }
173 /* DWARF debug sections.
174 Symbols in the DWARF debugging sections are relative to the beginning
175 of the section so we begin them at 0. */
177 .debug 0 : { *(.debug) }
178 .line 0 : { *(.line) }
179 /* GNU DWARF 1 extensions */
180 .debug_srcinfo 0 : { *(.debug_srcinfo) }
181 .debug_sfnames 0 : { *(.debug_sfnames) }
182 /* DWARF 1.1 and DWARF 2 */
183 .debug_aranges 0 : { *(.debug_aranges) }
184 .debug_pubnames 0 : { *(.debug_pubnames) }
186 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
187 .debug_abbrev 0 : { *(.debug_abbrev) }
188 .debug_line 0 : { *(.debug_line) }
189 .debug_frame 0 : { *(.debug_frame) }
190 .debug_str 0 : { *(.debug_str) }
191 .debug_loc 0 : { *(.debug_loc) }
192 .debug_macinfo 0 : { *(.debug_macinfo) }
193 /* SGI/MIPS DWARF 2 extensions */
194 .debug_weaknames 0 : { *(.debug_weaknames) }
195 .debug_funcnames 0 : { *(.debug_funcnames) }
196 .debug_typenames 0 : { *(.debug_typenames) }
197 .debug_varnames 0 : { *(.debug_varnames) }
199 .debug_pubtypes 0 : { *(.debug_pubtypes) }
200 .debug_ranges 0 : { *(.debug_ranges) }
202 .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
203 /DISCARD/ : { *(.note.GNU-stack) }