2 OUTPUT_FORMAT("elf32-v850-rh850", "elf32-v850-rh850",
4 OUTPUT_ARCH(v850-rh850)
5 ${RELOCATING+ENTRY(_start)}
7 EXTERN(__ctbp __ep __gp);
10 /* This saves a little space in the ELF file, since the zda starts
11 at a higher location that the ELF headers take up. */
13 .zdata ${ZDATA_START_ADDR} :
23 /* This is the read only part of the zero data area.
24 Having it as a seperate section prevents its
25 attributes from being inherited by the zdata
26 section. Specifically it prevents the zdata
27 section from being marked READONLY. */
29 .rozdata ${ROZDATA_START_ADDR} :
38 /* Read-only sections, merged into text segment. */
39 . = ${TEXT_START_ADDR};
40 .interp : { *(.interp) }
42 .dynsym : { *(.dynsym) }
43 .dynstr : { *(.dynstr) }
44 .rel.text : { *(.rel.text) }
45 .rela.text : { *(.rela.text) }
46 .rel.data : { *(.rel.data) }
47 .rela.data : { *(.rela.data) }
48 .rel.rodata : { *(.rel.rodata) }
49 .rela.rodata : { *(.rela.rodata) }
50 .rel.gcc_except_table : { *(.rel.gcc_except_table) }
51 .rela.gcc_except_table : { *(.rela.gcc_except_table) }
52 .rel.got : { *(.rel.got) }
53 .rela.got : { *(.rela.got) }
54 .rel.ctors : { *(.rel.ctors) }
55 .rela.ctors : { *(.rela.ctors) }
56 .rel.dtors : { *(.rel.dtors) }
57 .rela.dtors : { *(.rela.dtors) }
58 .rel.init : { *(.rel.init) }
59 .rela.init : { *(.rela.init) }
60 .rel.fini : { *(.rel.fini) }
61 .rela.fini : { *(.rela.fini) }
62 .rel.bss : { *(.rel.bss) }
63 .rela.bss : { *(.rela.bss) }
64 .rel.plt : { *(.rel.plt) }
65 .rela.plt : { *(.rela.plt) }
66 .init : { KEEP (*(.init)) } =0
72 ${RELOCATING+*(.text.*)}
74 /* .gnu.warning sections are handled specially by elf32.em. */
79 ${RELOCATING+_etext = .;}
80 ${RELOCATING+PROVIDE (etext = .);}
82 /* This is special code area at the end of the normal text section.
83 It contains a small lookup table at the start followed by the
84 code pointed to by entries in the lookup table. */
86 .call_table_data ${CALL_TABLE_START_ADDR} :
88 ${RELOCATING+PROVIDE(__ctbp = .);}
90 } = 0xff /* Fill gaps with 0xff. */
97 .fini : { KEEP (*(.fini)) } =0
101 ${RELOCATING+*(.rodata.*)}
105 .rodata1 : { *(.rodata1) }
110 ${RELOCATING+*(.data.*)}
114 .data1 : { *(.data1) }
117 ${CONSTRUCTING+___ctors = .;}
118 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
119 KEEP (*(SORT(.ctors.*)))
120 KEEP (*crtend(.ctors))
121 ${CONSTRUCTING+___ctors_end = .;}
125 ${CONSTRUCTING+___dtors = .;}
126 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
127 KEEP (*(SORT(.dtors.*)))
128 KEEP (*crtend.o(.dtors))
129 ${CONSTRUCTING+___dtors_end = .;}
136 .gcc_except_table : { *(.gcc_except_table) }
138 .got : { *(.got.plt) *(.got) }
139 .dynamic : { *(.dynamic) }
141 .tdata ${TDATA_START_ADDR} :
143 ${RELOCATING+PROVIDE (__ep = .);}
157 /* We want the small data sections together, so single-instruction offsets
158 can access them all, and initialized data all before uninitialized, so
159 we can shorten the on-disk segment size. */
161 .sdata ${SDATA_START_ADDR} :
163 ${RELOCATING+PROVIDE (__gp = . + 0x8000);}
168 /* See comment about .rozdata. */
169 .rosdata ${ROSDATA_START_ADDR} :
176 /* We place the .sbss data section AFTER the .rosdata section, so that
177 it can directly preceed the .bss section. This allows runtime startup
178 code to initialise all the zero-data sections by simply taking the
179 value of '_edata' and zeroing until it reaches '_end'. */
183 ${RELOCATING+__sbss_start = .;}
189 ${RELOCATING+_edata = DEFINED (__sbss_start) ? __sbss_start : . ;}
190 ${RELOCATING+PROVIDE (edata = _edata);}
194 ${RELOCATING+__bss_start = DEFINED (__sbss_start) ? __sbss_start : . ;}
195 ${RELOCATING+__real_bss_start = . ;}
201 ${RELOCATING+_end = . ;}
202 ${RELOCATING+PROVIDE (end = .);}
203 ${RELOCATING+PROVIDE (_heap_start = .);}
205 /* Stabs debugging sections. */
206 .stab 0 : { *(.stab) }
207 .stabstr 0 : { *(.stabstr) }
208 .stab.excl 0 : { *(.stab.excl) }
209 .stab.exclstr 0 : { *(.stab.exclstr) }
210 .stab.index 0 : { *(.stab.index) }
211 .stab.indexstr 0 : { *(.stab.indexstr) }
212 .comment 0 : { *(.comment) }
214 /* DWARF debug sections.
215 Symbols in the DWARF debugging sections are relative to the beginning
216 of the section so we begin them at 0. */
219 .debug 0 : { *(.debug) }
220 .line 0 : { *(.line) }
222 /* GNU DWARF 1 extensions */
223 .debug_srcinfo 0 : { *(.debug_srcinfo) }
224 .debug_sfnames 0 : { *(.debug_sfnames) }
226 /* DWARF 1.1 and DWARF 2 */
227 .debug_aranges 0 : { *(.debug_aranges) }
228 .debug_pubnames 0 : { *(.debug_pubnames) }
231 .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
232 .debug_abbrev 0 : { *(.debug_abbrev) }
233 .debug_line 0 : { *(.debug_line) }
234 .debug_frame 0 : { *(.debug_frame) }
235 .debug_str 0 : { *(.debug_str) }
236 .debug_loc 0 : { *(.debug_loc) }
237 .debug_macinfo 0 : { *(.debug_macinfo) }
239 /* SGI/MIPS DWARF 2 extensions. */
240 .debug_weaknames 0 : { *(.debug_weaknames) }
241 .debug_funcnames 0 : { *(.debug_funcnames) }
242 .debug_typenames 0 : { *(.debug_typenames) }
243 .debug_varnames 0 : { *(.debug_varnames) }
246 .debug_pubtypes 0 : { *(.debug_pubtypes) }
247 .debug_ranges 0 : { *(.debug_ranges) }
249 /* DWARF Extension. */
250 .debug_macro 0 : { *(.debug_macro) }
255 ${RELOCATING+__stack = .;}