1 #define CYG_LOADER_DYNAMIC_LD
3 #include <cyg/loader/loader.hxx>
5 CYG_LOADER_DYNAMIC_PREFIX
7 /* Do we need any of these for elf?
11 /* Read-only sections, merged into text segment: */
12 . = 0 + SIZEOF_HEADERS;
14 .dynsym : { *(.dynsym) }
15 .dynstr : { *(.dynstr) }
16 .gnu.version : { *(.gnu.version) }
17 .gnu.version_d : { *(.gnu.version_d) }
18 .gnu.version_r : { *(.gnu.version_r) }
19 .rel.init : { *(.rel.init) }
20 .rela.init : { *(.rela.init) }
25 *(.rel.gnu.linkonce.t*)
31 *(.rela.gnu.linkonce.t*)
33 .rel.fini : { *(.rel.fini) }
34 .rela.fini : { *(.rela.fini) }
39 *(.rel.gnu.linkonce.r*)
45 *(.rela.gnu.linkonce.r*)
51 *(.rel.gnu.linkonce.d*)
57 *(.rela.gnu.linkonce.d*)
59 .rel.ctors : { *(.rel.ctors) }
60 .rela.ctors : { *(.rela.ctors) }
61 .rel.dtors : { *(.rel.dtors) }
62 .rela.dtors : { *(.rela.dtors) }
63 .rel.got : { *(.rel.got) }
64 .rela.got : { *(.rela.got) }
69 *(.rel.gnu.linkonce.s*)
75 *(.rela.gnu.linkonce.s*)
77 .rel.sbss : { *(.rel.sbss) }
78 .rela.sbss : { *(.rela.sbss) }
79 .rel.bss : { *(.rel.bss) }
80 .rela.bss : { *(.rela.bss) }
81 .rel.plt : { *(.rel.plt) }
82 .rela.plt : { *(.rela.plt) }
93 /* .gnu.warning sections are handled specially by elf32.em. */
103 .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) }
104 .rodata1 : { *(.rodata1) }
105 #ifdef CYG_LOADER_DYNAMIC_DATA_ALIGN
106 CYG_LOADER_DYNAMIC_DATA_ALIGN
117 .data1 : { *(.data1) }
118 .eh_frame : { KEEP (*(.eh_frame)) }
119 .gcc_except_table : { *(.gcc_except_table) }
122 /* gcc uses crtbegin.o to find the start of
123 the constructors, so we make sure it is
124 first. Because this is a wildcard, it
125 doesn't matter if the user does not
126 actually link against crtbegin.o; the
127 linker won't look for a file to match a
128 wildcard. The wildcard also means that it
129 doesn't matter which directory crtbegin.o
131 KEEP (*crtbegin.o(.ctors))
132 /* We don't want to include the .ctor section from
133 from the crtend.o file until after the sorted ctors.
134 The .ctor section from the crtend file contains the
135 end of ctors marker and it must be last */
136 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
137 KEEP (*(SORT(.ctors.*)))
142 KEEP (*crtbegin.o(.dtors))
143 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
144 KEEP (*(SORT(.dtors.*)))
147 .got : { *(.got.plt) *(.got) }
148 .dynamic : { *(.dynamic) }
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. */
174 /* Align here to ensure that the .bss section occupies space up to
175 _end. Align after .bss to ensure correct alignment even if the
176 .bss section disappears because there are no input sections. */
182 /* Stabs debugging sections. */
183 .stab 0 : { *(.stab) }
184 .stabstr 0 : { *(.stabstr) }
185 .stab.excl 0 : { *(.stab.excl) }
186 .stab.exclstr 0 : { *(.stab.exclstr) }
187 .stab.index 0 : { *(.stab.index) }
188 .stab.indexstr 0 : { *(.stab.indexstr) }
189 .comment 0 : { *(.comment) }
190 /* DWARF debug sections.
191 Symbols in the DWARF debugging sections are relative to the beginning
192 of the section so we begin them at 0. */
194 .debug 0 : { *(.debug) }
195 .line 0 : { *(.line) }
196 /* GNU DWARF 1 extensions */
197 .debug_srcinfo 0 : { *(.debug_srcinfo) }
198 .debug_sfnames 0 : { *(.debug_sfnames) }
199 /* DWARF 1.1 and DWARF 2 */
200 .debug_aranges 0 : { *(.debug_aranges) }
201 .debug_pubnames 0 : { *(.debug_pubnames) }
203 .debug_info 0 : { *(.debug_info) }
204 .debug_abbrev 0 : { *(.debug_abbrev) }
205 .debug_line 0 : { *(.debug_line) }
206 .debug_frame 0 : { *(.debug_frame) }
207 .debug_str 0 : { *(.debug_str) }
208 .debug_loc 0 : { *(.debug_loc) }
209 .debug_macinfo 0 : { *(.debug_macinfo) }
210 /* SGI/MIPS DWARF 2 extensions */
211 .debug_weaknames 0 : { *(.debug_weaknames) }
212 .debug_funcnames 0 : { *(.debug_funcnames) }
213 .debug_typenames 0 : { *(.debug_typenames) }
214 .debug_varnames 0 : { *(.debug_varnames) }
215 /* These must appear regardless of . */