1
/* Script for -z combreloc: combine and sort reloc sections */
2
OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd", "elf32-i386-freebsd")
5
SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
8
/* Read-only sections, merged into text segment: */
9
. = 0x78048000 + SIZEOF_HEADERS;
10
.interp : { *(.interp) }
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) }
20
*(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
22
*(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
23
*(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
24
*(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
25
*(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
29
*(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
34
*(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
36
*(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
37
*(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
38
*(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
39
*(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
43
*(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
45
.rel.plt : { *(.rel.plt) }
46
.rela.plt : { *(.rela.plt) }
54
*(.text .stub .text.* .gnu.linkonce.t.*)
55
/* .gnu.warning sections are handled specially by elf32.em. */
62
PROVIDE (__etext = .);
65
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
66
.rodata1 : { *(.rodata1) }
67
.eh_frame_hdr : { *(.eh_frame_hdr) }
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 (0x1000) - ((0x1000 - .) & (0x1000 - 1)); . = DATA_SEGMENT_ALIGN (0x1000, 0x1000);
71
/* Ensure the __preinit_array_start label is properly aligned. We
72
could instead move the label definition inside the section, but
73
the linker would then create the section even if it turns out to
74
be empty, which isn't pretty. */
76
PROVIDE (__preinit_array_start = .);
77
.preinit_array : { *(.preinit_array) }
78
PROVIDE (__preinit_array_end = .);
79
PROVIDE (__init_array_start = .);
80
.init_array : { *(.init_array) }
81
PROVIDE (__init_array_end = .);
82
PROVIDE (__fini_array_start = .);
83
.fini_array : { *(.fini_array) }
84
PROVIDE (__fini_array_end = .);
87
*(.data .data.* .gnu.linkonce.d.*)
90
.data1 : { *(.data1) }
91
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
92
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
93
.eh_frame : { KEEP (*(.eh_frame)) }
94
.gcc_except_table : { *(.gcc_except_table) }
95
.dynamic : { *(.dynamic) }
98
/* gcc uses crtbegin.o to find the start of
99
the constructors, so we make sure it is
100
first. Because this is a wildcard, it
101
doesn't matter if the user does not
102
actually link against crtbegin.o; the
103
linker won't look for a file to match a
104
wildcard. The wildcard also means that it
105
doesn't matter which directory crtbegin.o
107
KEEP (*crtbegin*.o(.ctors))
108
/* We don't want to include the .ctor section from
109
from the crtend.o file until after the sorted ctors.
110
The .ctor section from the crtend file contains the
111
end of ctors marker and it must be last */
112
KEEP (*(EXCLUDE_FILE (*crtend*.o ) .ctors))
113
KEEP (*(SORT(.ctors.*)))
118
KEEP (*crtbegin*.o(.dtors))
119
KEEP (*(EXCLUDE_FILE (*crtend*.o ) .dtors))
120
KEEP (*(SORT(.dtors.*)))
123
.jcr : { KEEP (*(.jcr)) }
124
.got : { *(.got.plt) *(.got) }
131
*(.bss .bss.* .gnu.linkonce.b.*)
133
/* Align here to ensure that the .bss section occupies space up to
134
_end. Align after .bss to ensure correct alignment even if the
135
.bss section disappears because there are no input sections. */
141
. = DATA_SEGMENT_END (.);
142
/* Stabs debugging sections. */
143
.stab 0 : { *(.stab) }
144
.stabstr 0 : { *(.stabstr) }
145
.stab.excl 0 : { *(.stab.excl) }
146
.stab.exclstr 0 : { *(.stab.exclstr) }
147
.stab.index 0 : { *(.stab.index) }
148
.stab.indexstr 0 : { *(.stab.indexstr) }
149
.comment 0 : { *(.comment) }
150
/* DWARF debug sections.
151
Symbols in the DWARF debugging sections are relative to the beginning
152
of the section so we begin them at 0. */
154
.debug 0 : { *(.debug) }
155
.line 0 : { *(.line) }
156
/* GNU DWARF 1 extensions */
157
.debug_srcinfo 0 : { *(.debug_srcinfo) }
158
.debug_sfnames 0 : { *(.debug_sfnames) }
159
/* DWARF 1.1 and DWARF 2 */
160
.debug_aranges 0 : { *(.debug_aranges) }
161
.debug_pubnames 0 : { *(.debug_pubnames) }
163
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
164
.debug_abbrev 0 : { *(.debug_abbrev) }
165
.debug_line 0 : { *(.debug_line) }
166
.debug_frame 0 : { *(.debug_frame) }
167
.debug_str 0 : { *(.debug_str) }
168
.debug_loc 0 : { *(.debug_loc) }
169
.debug_macinfo 0 : { *(.debug_macinfo) }
170
/* SGI/MIPS DWARF 2 extensions */
171
.debug_weaknames 0 : { *(.debug_weaknames) }
172
.debug_funcnames 0 : { *(.debug_funcnames) }
173
.debug_typenames 0 : { *(.debug_typenames) }
174
.debug_varnames 0 : { *(.debug_varnames) }