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