This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / ld / scripttempl / v850.sc
1 cat << EOF
2 OUTPUT_FORMAT("elf32-v850", "elf32-v850",
3 "elf32-v850")
4 OUTPUT_ARCH(v850)
5 ENTRY(_start)
6 SEARCH_DIR(.);
7 /*/critters/slug/grossman/install/sun4/v850-elf/lib*/
8 SECTIONS
9 {
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. */
12
13 .zdata ${ZDATA_START_ADDR} : {
14 *(.zdata)
15 *(.rozdata)
16 *(.zbss)
17 *(reszdata)
18 *(romzdata)
19 *(romzbss)
20 }
21
22 /* Read-only sections, merged into text segment: */
23 . = ${TEXT_START_ADDR};
24 .interp : { *(.interp) }
25 .hash : { *(.hash) }
26 .dynsym : { *(.dynsym) }
27 .dynstr : { *(.dynstr) }
28 .rel.text : { *(.rel.text) }
29 .rela.text : { *(.rela.text) }
30 .rel.data : { *(.rel.data) }
31 .rela.data : { *(.rela.data) }
32 .rel.rodata : { *(.rel.rodata) }
33 .rela.rodata : { *(.rela.rodata) }
34 .rel.got : { *(.rel.got) }
35 .rela.got : { *(.rela.got) }
36 .rel.ctors : { *(.rel.ctors) }
37 .rela.ctors : { *(.rela.ctors) }
38 .rel.dtors : { *(.rel.dtors) }
39 .rela.dtors : { *(.rela.dtors) }
40 .rel.init : { *(.rel.init) }
41 .rela.init : { *(.rela.init) }
42 .rel.fini : { *(.rel.fini) }
43 .rela.fini : { *(.rela.fini) }
44 .rel.bss : { *(.rel.bss) }
45 .rela.bss : { *(.rela.bss) }
46 .rel.plt : { *(.rel.plt) }
47 .rela.plt : { *(.rela.plt) }
48 .init : { *(.init) } =0
49 .plt : { *(.plt) }
50
51 .text : {
52 *(.text)
53 /* .gnu.warning sections are handled specially by elf32.em. */
54 *(.gnu.warning)
55 *(.gnu.linkonce.t*)
56 } =0
57
58 ${RELOCATING+_etext = .;}
59 ${RELOCATING+PROVIDE (etext = .);}
60
61 .fini : { *(.fini) } =0
62 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
63 .rodata1 : { *(.rodata1) }
64
65 .data : {
66 *(.data)
67 *(.gnu.linkonce.d*)
68 CONSTRUCTORS
69 }
70 .data1 : { *(.data1) }
71 .ctors : {
72 ${RELOCATING+___ctors = .;}
73 *(.ctors)
74 ${RELOCATING+___ctors_end = .;}
75 }
76
77 .dtors : {
78 ${RELOCATING+___dtors = .;}
79 *(.dtors)
80 ${RELOCATING+___dtors_end = .;}
81 }
82
83 .got : { *(.got.plt) *(.got) }
84 .dynamic : { *(.dynamic) }
85
86 .tdata ${TDATA_START_ADDR} : {
87 ${RELOCATING+PROVIDE (__ep = .);}
88 *(.tbyte)
89 *(.tdata)
90 *(.tbss)
91 }
92
93 /* We want the small data sections together, so single-instruction offsets
94 can access them all, and initialized data all before uninitialized, so
95 we can shorten the on-disk segment size. */
96 .sdata ${SDATA_START_ADDR} : {
97 ${RELOCATING+PROVIDE (__gp = . + 0x8000);}
98 *(.rosdata)
99 *(.sdata)
100 ${RELOCATING+__sbss_start = .;}
101 *(.sbss)
102 *(.scommon)
103 }
104
105 ${RELOCATING+_edata = DEFINED (__sbss_start) ? __sbss_start : . ;}
106 ${RELOCATING+PROVIDE (edata = _edata);}
107
108 .bss :
109 {
110 ${RELOCATING+__bss_start = DEFINED (__sbss_start) ? __sbss_start : . ;}
111 *(.dynbss)
112 *(.bss)
113 *(COMMON)
114 }
115
116 ${RELOCATING+_end = . ;}
117 ${RELOCATING+PROVIDE (end = .);}
118
119 /* Stabs debugging sections. */
120 .stab 0 : { *(.stab) }
121 .stabstr 0 : { *(.stabstr) }
122 .stab.excl 0 : { *(.stab.excl) }
123 .stab.exclstr 0 : { *(.stab.exclstr) }
124 .stab.index 0 : { *(.stab.index) }
125 .stab.indexstr 0 : { *(.stab.indexstr) }
126 .comment 0 : { *(.comment) }
127
128 /* DWARF debug sections.
129 Symbols in the DWARF debugging sections are relative to the beginning
130 of the section so we begin them at 0. */
131
132 /* DWARF 1 */
133 .debug 0 : { *(.debug) }
134 .line 0 : { *(.line) }
135
136 /* GNU DWARF 1 extensions */
137 .debug_srcinfo 0 : { *(.debug_srcinfo) }
138 .debug_sfnames 0 : { *(.debug_sfnames) }
139
140 /* DWARF 1.1 and DWARF 2 */
141 .debug_aranges 0 : { *(.debug_aranges) }
142 .debug_pubnames 0 : { *(.debug_pubnames) }
143
144 /* DWARF 2 */
145 .debug_info 0 : { *(.debug_info) }
146 .debug_abbrev 0 : { *(.debug_abbrev) }
147 .debug_line 0 : { *(.debug_line) }
148 .debug_frame 0 : { *(.debug_frame) }
149 .debug_str 0 : { *(.debug_str) }
150 .debug_loc 0 : { *(.debug_loc) }
151 .debug_macinfo 0 : { *(.debug_macinfo) }
152
153 /* SGI/MIPS DWARF 2 extensions */
154 .debug_weaknames 0 : { *(.debug_weaknames) }
155 .debug_funcnames 0 : { *(.debug_funcnames) }
156 .debug_typenames 0 : { *(.debug_typenames) }
157 .debug_varnames 0 : { *(.debug_varnames) }
158
159 /* .stack 0xffffec00 : { _stack = .; *(.stack) }*/
160 .stack 0x200000 : {
161 ${RELOCATING+_stack = .;}
162 *(.stack)
163 }
164 /* These must appear regardless of . */
165 }
166 EOF
This page took 0.034711 seconds and 5 git commands to generate.