2 OUTPUT_FORMAT("elf32-v850", "elf32-v850",
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} :
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 = .);}
183 ${RELOCATING+PROVIDE (_heap_start = .);}
185 /* Stabs debugging sections. */
186 .stab 0 : { *(.stab) }
187 .stabstr 0 : { *(.stabstr) }
188 .stab.excl 0 : { *(.stab.excl) }
189 .stab.exclstr 0 : { *(.stab.exclstr) }
190 .stab.index 0 : { *(.stab.index) }
191 .stab.indexstr 0 : { *(.stab.indexstr) }
192 .comment 0 : { *(.comment) }
196 . $srcdir/scripttempl/DWARF.sc
202 ${RELOCATING+__stack = .;}