1 /* Script for -z combreloc: combine and sort reloc sections */
2 OUTPUT_FORMAT("elf32-m68k", "elf32-m68k",
6 SEARCH_DIR("/usr/local/m68k-linux/lib");
7 /* Do we need any of these for elf?
11 /* Read-only sections, merged into text segment: */
12 . = 0x60000000 + SIZEOF_HEADERS;
13 .interp : { *(.interp) }
15 .dynsym : { *(.dynsym) }
16 .dynstr : { *(.dynstr) }
17 .gnu.version : { *(.gnu.version) }
18 .gnu.version_d : { *(.gnu.version_d) }
19 .gnu.version_r : { *(.gnu.version_r) }
23 *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
25 *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
26 *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
27 *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
28 *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
32 *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
37 *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
39 *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
40 *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
41 *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
42 *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
46 *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
48 .rel.plt : { *(.rel.plt) }
49 .rela.plt : { *(.rela.plt) }
57 *(.text .stub .text.* .gnu.linkonce.t.*)
58 /* .gnu.warning sections are handled specially by elf32.em. */
65 PROVIDE (__etext = .);
68 .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
69 .rodata1 : { *(.rodata1) }
70 .eh_frame_hdr : { *(.eh_frame_hdr) }
71 /* Adjust the address for the data segment. We want to adjust up to
72 the same address within the page on the next page up. */
73 . = ALIGN(0x2000) + (. & (0x2000 - 1));
74 /* Ensure the __preinit_array_start label is properly aligned. We
75 could instead move the label definition inside the section, but
76 the linker would then create the section even if it turns out to
77 be empty, which isn't pretty. */
79 PROVIDE (__preinit_array_start = .);
80 .preinit_array : { *(.preinit_array) }
81 PROVIDE (__preinit_array_end = .);
82 PROVIDE (__init_array_start = .);
83 .init_array : { *(.init_array) }
84 PROVIDE (__init_array_end = .);
85 PROVIDE (__fini_array_start = .);
86 .fini_array : { *(.fini_array) }
87 PROVIDE (__fini_array_end = .);
90 *(.data .data.* .gnu.linkonce.d.*)
93 .data1 : { *(.data1) }
94 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
95 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
96 .eh_frame : { KEEP (*(.eh_frame)) }
97 .gcc_except_table : { *(.gcc_except_table) }
98 .dynamic : { *(.dynamic) }
101 /* gcc uses crtbegin.o to find the start of
102 the constructors, so we make sure it is
103 first. Because this is a wildcard, it
104 doesn't matter if the user does not
105 actually link against crtbegin.o; the
106 linker won't look for a file to match a
107 wildcard. The wildcard also means that it
108 doesn't matter which directory crtbegin.o
110 KEEP (*crtbegin.o(.ctors))
111 /* We don't want to include the .ctor section from
112 from the crtend.o file until after the sorted ctors.
113 The .ctor section from the crtend file contains the
114 end of ctors marker and it must be last */
115 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
116 KEEP (*(SORT(.ctors.*)))
121 KEEP (*crtbegin.o(.dtors))
122 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
123 KEEP (*(SORT(.dtors.*)))
126 .jcr : { KEEP (*(.jcr)) }
127 .got : { *(.got.plt) *(.got) }
134 *(.bss .bss.* .gnu.linkonce.b.*)
136 /* Align here to ensure that the .bss section occupies space up to
137 _end. Align after .bss to ensure correct alignment even if the
138 .bss section disappears because there are no input sections. */
144 /* Stabs debugging sections. */
145 .stab 0 : { *(.stab) }
146 .stabstr 0 : { *(.stabstr) }
147 .stab.excl 0 : { *(.stab.excl) }
148 .stab.exclstr 0 : { *(.stab.exclstr) }
149 .stab.index 0 : { *(.stab.index) }
150 .stab.indexstr 0 : { *(.stab.indexstr) }
151 .comment 0 : { *(.comment) }
152 /* DWARF debug sections.
153 Symbols in the DWARF debugging sections are relative to the beginning
154 of the section so we begin them at 0. */
156 .debug 0 : { *(.debug) }
157 .line 0 : { *(.line) }
158 /* GNU DWARF 1 extensions */
159 .debug_srcinfo 0 : { *(.debug_srcinfo) }
160 .debug_sfnames 0 : { *(.debug_sfnames) }
161 /* DWARF 1.1 and DWARF 2 */
162 .debug_aranges 0 : { *(.debug_aranges) }
163 .debug_pubnames 0 : { *(.debug_pubnames) }
165 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
166 .debug_abbrev 0 : { *(.debug_abbrev) }
167 .debug_line 0 : { *(.debug_line) }
168 .debug_frame 0 : { *(.debug_frame) }
169 .debug_str 0 : { *(.debug_str) }
170 .debug_loc 0 : { *(.debug_loc) }
171 .debug_macinfo 0 : { *(.debug_macinfo) }
172 /* SGI/MIPS DWARF 2 extensions */
173 .debug_weaknames 0 : { *(.debug_weaknames) }
174 .debug_funcnames 0 : { *(.debug_funcnames) }
175 .debug_typenames 0 : { *(.debug_typenames) }
176 .debug_varnames 0 : { *(.debug_varnames) }