2 OUTPUT_FORMAT("elf32-v850", "elf32-v850",
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} :
21 /* This is the read only part of the zero data area.
22 Having it as a seperate section prevents its
23 attributes from being inherited by the zdata
24 section. Specifically it prevents the zdata
25 section from being marked READONLY. */
27 .rozdata ${ROZDATA_START_ADDR} :
34 /* Read-only sections, merged into text segment. */
35 . = ${TEXT_START_ADDR};
36 .interp : { *(.interp) }
38 .dynsym : { *(.dynsym) }
39 .dynstr : { *(.dynstr) }
40 .rel.text : { *(.rel.text) }
41 .rela.text : { *(.rela.text) }
42 .rel.data : { *(.rel.data) }
43 .rela.data : { *(.rela.data) }
44 .rel.rodata : { *(.rel.rodata) }
45 .rela.rodata : { *(.rela.rodata) }
46 .rel.gcc_except_table : { *(.rel.gcc_except_table) }
47 .rela.gcc_except_table : { *(.rela.gcc_except_table) }
48 .rel.got : { *(.rel.got) }
49 .rela.got : { *(.rela.got) }
50 .rel.ctors : { *(.rel.ctors) }
51 .rela.ctors : { *(.rela.ctors) }
52 .rel.dtors : { *(.rel.dtors) }
53 .rela.dtors : { *(.rela.dtors) }
54 .rel.init : { *(.rel.init) }
55 .rela.init : { *(.rela.init) }
56 .rel.fini : { *(.rel.fini) }
57 .rela.fini : { *(.rela.fini) }
58 .rel.bss : { *(.rel.bss) }
59 .rela.bss : { *(.rela.bss) }
60 .rel.plt : { *(.rel.plt) }
61 .rela.plt : { *(.rela.plt) }
62 .init : { KEEP (*(.init)) } =0
68 ${RELOCATING+*(.text.*)}
70 /* .gnu.warning sections are handled specially by elf32.em. */
75 ${RELOCATING+_etext = .;}
76 ${RELOCATING+PROVIDE (etext = .);}
78 /* This is special code area at the end of the normal text section.
79 It contains a small lookup table at the start followed by the
80 code pointed to by entries in the lookup table. */
82 .call_table_data ${CALL_TABLE_START_ADDR} :
84 ${RELOCATING+PROVIDE(__ctbp = .);}
86 } = 0xff /* Fill gaps with 0xff. */
93 .fini : { KEEP (*(.fini)) } =0
94 .rodata : { *(.rodata) ${RELOCATING+*(.rodata.*)} *(.gnu.linkonce.r*) }
95 .rodata1 : { *(.rodata1) }
100 ${RELOCATING+*(.data.*)}
104 .data1 : { *(.data1) }
107 ${CONSTRUCTING+___ctors = .;}
108 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
109 KEEP (*(SORT(.ctors.*)))
110 KEEP (*crtend(.ctors))
111 ${CONSTRUCTING+___ctors_end = .;}
115 ${CONSTRUCTING+___dtors = .;}
116 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
117 KEEP (*(SORT(.dtors.*)))
118 KEEP (*crtend.o(.dtors))
119 ${CONSTRUCTING+___dtors_end = .;}
126 .gcc_except_table : { *(.gcc_except_table) }
128 .got : { *(.got.plt) *(.got) }
129 .dynamic : { *(.dynamic) }
131 .tdata ${TDATA_START_ADDR} :
133 ${RELOCATING+PROVIDE (__ep = .);}
141 /* We want the small data sections together, so single-instruction offsets
142 can access them all, and initialized data all before uninitialized, so
143 we can shorten the on-disk segment size. */
145 .sdata ${SDATA_START_ADDR} :
147 ${RELOCATING+PROVIDE (__gp = . + 0x8000);}
151 /* See comment about .rozdata. */
152 .rosdata ${ROSDATA_START_ADDR} :
157 /* We place the .sbss data section AFTER the .rosdata section, so that
158 it can directly preceed the .bss section. This allows runtime startup
159 code to initialise all the zero-data sections by simply taking the
160 value of '_edata' and zeroing until it reaches '_end'. */
164 ${RELOCATING+__sbss_start = .;}
169 ${RELOCATING+_edata = DEFINED (__sbss_start) ? __sbss_start : . ;}
170 ${RELOCATING+PROVIDE (edata = _edata);}
174 ${RELOCATING+__bss_start = DEFINED (__sbss_start) ? __sbss_start : . ;}
175 ${RELOCATING+__real_bss_start = . ;}
181 ${RELOCATING+_end = . ;}
182 ${RELOCATING+PROVIDE (end = .);}
184 /* Stabs debugging sections. */
185 .stab 0 : { *(.stab) }
186 .stabstr 0 : { *(.stabstr) }
187 .stab.excl 0 : { *(.stab.excl) }
188 .stab.exclstr 0 : { *(.stab.exclstr) }
189 .stab.index 0 : { *(.stab.index) }
190 .stab.indexstr 0 : { *(.stab.indexstr) }
191 .comment 0 : { *(.comment) }
193 /* DWARF debug sections.
194 Symbols in the DWARF debugging sections are relative to the beginning
195 of the section so we begin them at 0. */
198 .debug 0 : { *(.debug) }
199 .line 0 : { *(.line) }
201 /* GNU DWARF 1 extensions */
202 .debug_srcinfo 0 : { *(.debug_srcinfo) }
203 .debug_sfnames 0 : { *(.debug_sfnames) }
205 /* DWARF 1.1 and DWARF 2 */
206 .debug_aranges 0 : { *(.debug_aranges) }
207 .debug_pubnames 0 : { *(.debug_pubnames) }
210 .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
211 .debug_abbrev 0 : { *(.debug_abbrev) }
212 .debug_line 0 : { *(.debug_line) }
213 .debug_frame 0 : { *(.debug_frame) }
214 .debug_str 0 : { *(.debug_str) }
215 .debug_loc 0 : { *(.debug_loc) }
216 .debug_macinfo 0 : { *(.debug_macinfo) }
218 /* SGI/MIPS DWARF 2 extensions. */
219 .debug_weaknames 0 : { *(.debug_weaknames) }
220 .debug_funcnames 0 : { *(.debug_funcnames) }
221 .debug_typenames 0 : { *(.debug_typenames) }
222 .debug_varnames 0 : { *(.debug_varnames) }
227 ${RELOCATING+__stack = .;}