1 OUTPUT_FORMAT("elf32-s390", "elf32-s390",
3 OUTPUT_ARCH(s390:31-bit)
8 /* Read-only sections, merged into text segment: */
9 . = 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) }
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.sdata .rel.sdata.* .rel.gnu.linkonce.s.*)
30 *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*)
31 *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*)
32 *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*)
33 *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
38 *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
40 *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
41 *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
42 *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
43 *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
47 *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*)
48 *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*)
49 *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*)
50 *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*)
51 *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
53 .rel.plt : { *(.rel.plt) }
54 .rela.plt : { *(.rela.plt) }
62 *(.text .stub .text.* .gnu.linkonce.t.*)
63 /* .gnu.warning sections are handled specially by elf32.em. */
70 PROVIDE (__etext = .);
73 .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
74 .rodata1 : { *(.rodata1) }
75 .sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) }
76 .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
77 .eh_frame_hdr : { *(.eh_frame_hdr) }
78 /* Adjust the address for the data segment. We want to adjust up to
79 the same address within the page on the next page up. */
80 . = ALIGN(0x1000) + (. & (0x1000 - 1));
81 /* Ensure the __preinit_array_start label is properly aligned. We
82 could instead move the label definition inside the section, but
83 the linker would then create the section even if it turns out to
84 be empty, which isn't pretty. */
86 PROVIDE (__preinit_array_start = .);
87 .preinit_array : { *(.preinit_array) }
88 PROVIDE (__preinit_array_end = .);
89 PROVIDE (__init_array_start = .);
90 .init_array : { *(.init_array) }
91 PROVIDE (__init_array_end = .);
92 PROVIDE (__fini_array_start = .);
93 .fini_array : { *(.fini_array) }
94 PROVIDE (__fini_array_end = .);
97 *(.data .data.* .gnu.linkonce.d.*)
100 .data1 : { *(.data1) }
101 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
102 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
103 .eh_frame : { KEEP (*(.eh_frame)) }
104 .gcc_except_table : { *(.gcc_except_table) }
105 .dynamic : { *(.dynamic) }
108 /* gcc uses crtbegin.o to find the start of
109 the constructors, so we make sure it is
110 first. Because this is a wildcard, it
111 doesn't matter if the user does not
112 actually link against crtbegin.o; the
113 linker won't look for a file to match a
114 wildcard. The wildcard also means that it
115 doesn't matter which directory crtbegin.o
117 KEEP (*crtbegin.o(.ctors))
118 /* We don't want to include the .ctor section from
119 from the crtend.o file until after the sorted ctors.
120 The .ctor section from the crtend file contains the
121 end of ctors marker and it must be last */
122 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
123 KEEP (*(SORT(.ctors.*)))
128 KEEP (*crtbegin.o(.dtors))
129 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
130 KEEP (*(SORT(.dtors.*)))
133 .jcr : { KEEP (*(.jcr)) }
134 .got : { *(.got.plt) *(.got) }
135 /* We want the small data sections together, so single-instruction offsets
136 can access them all, and initialized data all before uninitialized, so
137 we can shorten the on-disk segment size. */
140 *(.sdata .sdata.* .gnu.linkonce.s.*)
147 PROVIDE (__sbss_start = .);
148 PROVIDE (___sbss_start = .);
150 *(.sbss .sbss.* .gnu.linkonce.sb.*)
152 PROVIDE (__sbss_end = .);
153 PROVIDE (___sbss_end = .);
158 *(.bss .bss.* .gnu.linkonce.b.*)
160 /* Align here to ensure that the .bss section occupies space up to
161 _end. Align after .bss to ensure correct alignment even if the
162 .bss section disappears because there are no input sections. */
168 /* Stabs debugging sections. */
169 .stab 0 : { *(.stab) }
170 .stabstr 0 : { *(.stabstr) }
171 .stab.excl 0 : { *(.stab.excl) }
172 .stab.exclstr 0 : { *(.stab.exclstr) }
173 .stab.index 0 : { *(.stab.index) }
174 .stab.indexstr 0 : { *(.stab.indexstr) }
175 .comment 0 : { *(.comment) }
176 /* DWARF debug sections.
177 Symbols in the DWARF debugging sections are relative to the beginning
178 of the section so we begin them at 0. */
180 .debug 0 : { *(.debug) }
181 .line 0 : { *(.line) }
182 /* GNU DWARF 1 extensions */
183 .debug_srcinfo 0 : { *(.debug_srcinfo) }
184 .debug_sfnames 0 : { *(.debug_sfnames) }
185 /* DWARF 1.1 and DWARF 2 */
186 .debug_aranges 0 : { *(.debug_aranges) }
187 .debug_pubnames 0 : { *(.debug_pubnames) }
189 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
190 .debug_abbrev 0 : { *(.debug_abbrev) }
191 .debug_line 0 : { *(.debug_line) }
192 .debug_frame 0 : { *(.debug_frame) }
193 .debug_str 0 : { *(.debug_str) }
194 .debug_loc 0 : { *(.debug_loc) }
195 .debug_macinfo 0 : { *(.debug_macinfo) }
196 /* SGI/MIPS DWARF 2 extensions */
197 .debug_weaknames 0 : { *(.debug_weaknames) }
198 .debug_funcnames 0 : { *(.debug_funcnames) }
199 .debug_typenames 0 : { *(.debug_typenames) }
200 .debug_varnames 0 : { *(.debug_varnames) }