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) }
216 source $srcdir/scripttempl/DWARF.sc
222 ${RELOCATING+__stack = .;}