1 /* Default linker script, for normal executables */
2 OUTPUT_FORMAT("elf32-hppa-linux", "elf32-hppa-linux",
4 OUTPUT_ARCH(hppa:hppa1.1)
6 SEARCH_DIR("/usr/hppa-linux-gnu/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
9 /* Read-only sections, merged into text segment: */
10 PROVIDE (__executable_start = 0x60000000); . = 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) }
18 .rel.init : { *(.rel.init) }
19 .rela.init : { *(.rela.init) }
20 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) }
21 .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
22 .rel.fini : { *(.rel.fini) }
23 .rela.fini : { *(.rela.fini) }
24 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }
25 .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
26 .rel.data.rel.ro : { *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*) }
27 .rela.data.rel.ro : { *(.rela.data.rel.ro* .rela.gnu.linkonce.d.rel.ro.*) }
28 .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) }
29 .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
30 .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
31 .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
32 .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
33 .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
34 .rel.ctors : { *(.rel.ctors) }
35 .rela.ctors : { *(.rela.ctors) }
36 .rel.dtors : { *(.rel.dtors) }
37 .rela.dtors : { *(.rela.dtors) }
38 .rel.got : { *(.rel.got) }
39 .rela.got : { *(.rela.got) }
40 .rel.sdata : { *(.rel.sdata .rel.sdata.* .rel.gnu.linkonce.s.*) }
41 .rela.sdata : { *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) }
42 .rel.sbss : { *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*) }
43 .rela.sbss : { *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*) }
44 .rel.sdata2 : { *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*) }
45 .rela.sdata2 : { *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) }
46 .rel.sbss2 : { *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*) }
47 .rela.sbss2 : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) }
48 .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
49 .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
50 .rel.plt : { *(.rel.plt) }
51 .rela.plt : { *(.rela.plt) }
58 *(.text .stub .text.* .gnu.linkonce.t.*)
59 KEEP (*(.text.*personality*))
60 /* .gnu.warning sections are handled specially by elf32.em. */
67 PROVIDE (__etext = .);
70 .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
71 .rodata1 : { *(.rodata1) }
74 *(.sdata2 .sdata2.* .gnu.linkonce.s2.*)
76 .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
77 .PARISC.unwind : { *(.PARISC.unwind) }
78 .eh_frame_hdr : { *(.eh_frame_hdr) }
79 .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
80 .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }
81 /* Adjust the address for the data segment. We want to adjust up to
82 the same address within the page on the next page up. */
83 . = ALIGN(0x10000) + (. & (0x10000 - 1));
84 /* Exception handling */
85 .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
86 .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
87 /* Thread Local Storage sections */
88 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
89 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
92 PROVIDE_HIDDEN (__preinit_array_start = .);
93 KEEP (*(.preinit_array))
94 PROVIDE_HIDDEN (__preinit_array_end = .);
98 PROVIDE_HIDDEN (__init_array_start = .);
99 KEEP (*(SORT(.init_array.*)))
100 KEEP (*(.init_array))
101 PROVIDE_HIDDEN (__init_array_end = .);
105 PROVIDE_HIDDEN (__fini_array_start = .);
106 KEEP (*(.fini_array))
107 KEEP (*(SORT(.fini_array.*)))
108 PROVIDE_HIDDEN (__fini_array_end = .);
112 /* gcc uses crtbegin.o to find the start of
113 the constructors, so we make sure it is
114 first. Because this is a wildcard, it
115 doesn't matter if the user does not
116 actually link against crtbegin.o; the
117 linker won't look for a file to match a
118 wildcard. The wildcard also means that it
119 doesn't matter which directory crtbegin.o
121 KEEP (*crtbegin*.o(.ctors))
122 /* We don't want to include the .ctor section from
123 the crtend.o file until after the sorted ctors.
124 The .ctor section from the crtend file contains the
125 end of ctors marker and it must be last */
126 KEEP (*(EXCLUDE_FILE (*crtend*.o ) .ctors))
127 KEEP (*(SORT(.ctors.*)))
132 KEEP (*crtbegin*.o(.dtors))
133 KEEP (*(EXCLUDE_FILE (*crtend*.o ) .dtors))
134 KEEP (*(SORT(.dtors.*)))
137 .jcr : { KEEP (*(.jcr)) }
138 .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }
139 .dynamic : { *(.dynamic) }
142 PROVIDE ($global$ = .);
143 *(.data .data.* .gnu.linkonce.d.*)
144 KEEP (*(.gnu.linkonce.d.*personality*))
147 .data1 : { *(.data1) }
149 .got : { *(.got.plt) *(.got) }
150 /* We want the small data sections together, so single-instruction offsets
151 can access them all, and initialized data all before uninitialized, so
152 we can shorten the on-disk segment size. */
155 *(.sdata .sdata.* .gnu.linkonce.s.*)
157 _edata = .; PROVIDE (edata = .);
162 *(.sbss .sbss.* .gnu.linkonce.sb.*)
168 *(.bss .bss.* .gnu.linkonce.b.*)
170 /* Align here to ensure that the .bss section occupies space up to
171 _end. Align after .bss to ensure correct alignment even if the
172 .bss section disappears because there are no input sections.
173 FIXME: Why do we need it? When there is no .bss section, we don't
174 pad the .data section. */
175 . = ALIGN(. != 0 ? 32 / 8 : 1);
179 _end = .; PROVIDE (end = .);
180 /* Stabs debugging sections. */
181 .stab 0 : { *(.stab) }
182 .stabstr 0 : { *(.stabstr) }
183 .stab.excl 0 : { *(.stab.excl) }
184 .stab.exclstr 0 : { *(.stab.exclstr) }
185 .stab.index 0 : { *(.stab.index) }
186 .stab.indexstr 0 : { *(.stab.indexstr) }
187 .comment 0 : { *(.comment) }
188 /* DWARF debug sections.
189 Symbols in the DWARF debugging sections are relative to the beginning
190 of the section so we begin them at 0. */
192 .debug 0 : { *(.debug) }
193 .line 0 : { *(.line) }
194 /* GNU DWARF 1 extensions */
195 .debug_srcinfo 0 : { *(.debug_srcinfo) }
196 .debug_sfnames 0 : { *(.debug_sfnames) }
197 /* DWARF 1.1 and DWARF 2 */
198 .debug_aranges 0 : { *(.debug_aranges) }
199 .debug_pubnames 0 : { *(.debug_pubnames) }
201 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
202 .debug_abbrev 0 : { *(.debug_abbrev) }
203 .debug_line 0 : { *(.debug_line) }
204 .debug_frame 0 : { *(.debug_frame) }
205 .debug_str 0 : { *(.debug_str) }
206 .debug_loc 0 : { *(.debug_loc) }
207 .debug_macinfo 0 : { *(.debug_macinfo) }
208 /* SGI/MIPS DWARF 2 extensions */
209 .debug_weaknames 0 : { *(.debug_weaknames) }
210 .debug_funcnames 0 : { *(.debug_funcnames) }
211 .debug_typenames 0 : { *(.debug_typenames) }
212 .debug_varnames 0 : { *(.debug_varnames) }
213 /DISCARD/ : { *(.note.GNU-stack) }