2 OUTPUT_FORMAT("elf32-v850", "elf32-v850",
7 /*/critters/slug/grossman/install/sun4/v850-elf/lib*/
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} : {
20 /* This is the read only part of the zero data area.
21 Having it as a seperate section prevents its
22 attributes from being inherited by the zdata
23 section. Specifically it prevents the zdata
24 section from being marked READONLY. */
26 .rozdata ${ROZDATA_START_ADDR} : {
32 /* Read-only sections, merged into text segment: */
33 . = ${TEXT_START_ADDR};
34 .interp : { *(.interp) }
36 .dynsym : { *(.dynsym) }
37 .dynstr : { *(.dynstr) }
38 .rel.text : { *(.rel.text) }
39 .rela.text : { *(.rela.text) }
40 .rel.data : { *(.rel.data) }
41 .rela.data : { *(.rela.data) }
42 .rel.rodata : { *(.rel.rodata) }
43 .rela.rodata : { *(.rela.rodata) }
44 .rel.got : { *(.rel.got) }
45 .rela.got : { *(.rela.got) }
46 .rel.ctors : { *(.rel.ctors) }
47 .rela.ctors : { *(.rela.ctors) }
48 .rel.dtors : { *(.rel.dtors) }
49 .rela.dtors : { *(.rela.dtors) }
50 .rel.init : { *(.rel.init) }
51 .rela.init : { *(.rela.init) }
52 .rel.fini : { *(.rel.fini) }
53 .rela.fini : { *(.rela.fini) }
54 .rel.bss : { *(.rel.bss) }
55 .rela.bss : { *(.rela.bss) }
56 .rel.plt : { *(.rel.plt) }
57 .rela.plt : { *(.rela.plt) }
58 .init : { KEEP (*(.init)) } =0
63 ${RELOCATING+*(.text.*)}
64 /* .gnu.warning sections are handled specially by elf32.em. */
69 ${RELOCATING+_etext = .;}
70 ${RELOCATING+PROVIDE (etext = .);}
72 /* This is special code area at the end of the normal text section.
73 It contains a small lookup table at the start followed by the
74 code pointed to by entries in the lookup table. */
76 .call_table_data ${CALL_TABLE_START_ADDR} : {
77 ${RELOCATING+PROVIDE(__ctbp = .);}
79 } = 0xff /* fill gaps with 0xff */
84 .fini : { KEEP (*(.fini)) } =0
85 .rodata : { *(.rodata) ${RELOCATING+*(.rodata.*)} *(.gnu.linkonce.r*) }
86 .rodata1 : { *(.rodata1) }
90 ${RELOCATING+*(.data.*)}
94 .data1 : { *(.data1) }
96 ${RELOCATING+___ctors = .;}
98 ${RELOCATING+___ctors_end = .;}
102 ${RELOCATING+___dtors = .;}
104 ${RELOCATING+___dtors_end = .;}
107 .got : { *(.got.plt) *(.got) }
108 .dynamic : { *(.dynamic) }
110 .tdata ${TDATA_START_ADDR} : {
111 ${RELOCATING+PROVIDE (__ep = .);}
119 /* We want the small data sections together, so single-instruction offsets
120 can access them all, and initialized data all before uninitialized, so
121 we can shorten the on-disk segment size. */
122 .sdata ${SDATA_START_ADDR} : {
123 ${RELOCATING+PROVIDE (__gp = . + 0x8000);}
127 /* See comment about .rozdata. */
128 .rosdata ${ROSDATA_START_ADDR} : {
132 /* We place the .sbss data section AFTER the .rosdata section, so that
133 it can directly preceed the .bss section. This allows runtime startup
134 code to initialise all the zero-data sections by simply taking the
135 value of '_edata' and zeroing until it reaches '_end' */
137 ${RELOCATING+__sbss_start = .;}
142 ${RELOCATING+_edata = DEFINED (__sbss_start) ? __sbss_start : . ;}
143 ${RELOCATING+PROVIDE (edata = _edata);}
147 ${RELOCATING+__bss_start = DEFINED (__sbss_start) ? __sbss_start : . ;}
148 ${RELOCATING+__real_bss_start = . ;}
154 ${RELOCATING+_end = . ;}
155 ${RELOCATING+PROVIDE (end = .);}
157 /* Stabs debugging sections. */
158 .stab 0 : { *(.stab) }
159 .stabstr 0 : { *(.stabstr) }
160 .stab.excl 0 : { *(.stab.excl) }
161 .stab.exclstr 0 : { *(.stab.exclstr) }
162 .stab.index 0 : { *(.stab.index) }
163 .stab.indexstr 0 : { *(.stab.indexstr) }
164 .comment 0 : { *(.comment) }
166 /* DWARF debug sections.
167 Symbols in the DWARF debugging sections are relative to the beginning
168 of the section so we begin them at 0. */
171 .debug 0 : { *(.debug) }
172 .line 0 : { *(.line) }
174 /* GNU DWARF 1 extensions */
175 .debug_srcinfo 0 : { *(.debug_srcinfo) }
176 .debug_sfnames 0 : { *(.debug_sfnames) }
178 /* DWARF 1.1 and DWARF 2 */
179 .debug_aranges 0 : { *(.debug_aranges) }
180 .debug_pubnames 0 : { *(.debug_pubnames) }
183 .debug_info 0 : { *(.debug_info) }
184 .debug_abbrev 0 : { *(.debug_abbrev) }
185 .debug_line 0 : { *(.debug_line) }
186 .debug_frame 0 : { *(.debug_frame) }
187 .debug_str 0 : { *(.debug_str) }
188 .debug_loc 0 : { *(.debug_loc) }
189 .debug_macinfo 0 : { *(.debug_macinfo) }
191 /* SGI/MIPS DWARF 2 extensions */
192 .debug_weaknames 0 : { *(.debug_weaknames) }
193 .debug_funcnames 0 : { *(.debug_funcnames) }
194 .debug_typenames 0 : { *(.debug_typenames) }
195 .debug_varnames 0 : { *(.debug_varnames) }
199 ${RELOCATING+__stack = .;}
202 /* These must appear regardless of . */