* Makefile.in (FLAGS_TO_PASS): Pass down gcc_include_dir and
[deliverable/binutils-gdb.git] / ld / scripttempl / elfd30v.sc
CommitLineData
b0f76434
MM
1cat <<EOF
2OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3OUTPUT_ARCH(${ARCH})
4
5MEMORY
6{
7 text : ORIGIN = ${TEXT_START_ADDR}, LENGTH = ${TEXT_SIZE}
8 data : ORIGIN = ${DATA_START_ADDR}, LENGTH = ${DATA_SIZE}
9 emem : ORIGIN = ${EMEM_START_ADDR}, LENGTH = ${EMEM_SIZE}
10}
11
12SECTIONS
13{
03ab605a
MM
14 /* Read-only sections, merged into text segment: */
15 ${TEXT_DYNAMIC+${DYNAMIC}}
16 .hash ${RELOCATING-0} : { *(.hash) }
17 .dynsym ${RELOCATING-0} : { *(.dynsym) }
18 .dynstr ${RELOCATING-0} : { *(.dynstr) }
19 .gnu.version ${RELOCATING-0} : { *(.gnu.version) }
20 .gnu.version_d ${RELOCATING-0} : { *(.gnu.version_d) }
21 .gnu.version_r ${RELOCATING-0} : { *(.gnu.version_r) }
22
23 .rela.text ${RELOCATING-0} : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
24 .rela.data ${RELOCATING-0} : { *(.rela.data) *(.rela.gnu.linkonce.d*) }
25 .rela.rodata ${RELOCATING-0} : { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
26 .rela.stext ${RELOCATING-0} : { *(.rela.stest) }
27 .rela.etext ${RELOCATING-0} : { *(.rela.etest) }
28 .rela.sdata ${RELOCATING-0} : { *(.rela.sdata) }
29 .rela.edata ${RELOCATING-0} : { *(.rela.edata) }
30 .rela.sbss ${RELOCATING-0} : { *(.rela.sbss) }
31 .rela.ebss ${RELOCATING-0} : { *(.rela.ebss) }
32 .rela.srodata ${RELOCATING-0} : { *(.rela.srodata) }
33 .rela.erodata ${RELOCATING-0} : { *(.rela.erodata) }
34 .rela.got ${RELOCATING-0} : { *(.rela.got) }
35 .rela.ctors ${RELOCATING-0} : { *(.rela.ctors) }
36 .rela.dtors ${RELOCATING-0} : { *(.rela.dtors) }
37 .rela.init ${RELOCATING-0} : { *(.rela.init) }
38 .rela.fini ${RELOCATING-0} : { *(.rela.fini) }
39 .rela.bss ${RELOCATING-0} : { *(.rela.bss) }
40 .rela.plt ${RELOCATING-0} : { *(.rela.plt) }
41
42 .rel.data ${RELOCATING-0} : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
43 .rel.rodata ${RELOCATING-0} : { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
44 .rel.stext ${RELOCATING-0} : { *(.rel.stest) }
45 .rel.etext ${RELOCATING-0} : { *(.rel.etest) }
46 .rel.sdata ${RELOCATING-0} : { *(.rel.sdata) }
47 .rel.edata ${RELOCATING-0} : { *(.rel.edata) }
48 .rel.sbss ${RELOCATING-0} : { *(.rel.sbss) }
49 .rel.ebss ${RELOCATING-0} : { *(.rel.ebss) }
50 .rel.srodata ${RELOCATING-0} : { *(.rel.srodata) }
51 .rel.erodata ${RELOCATING-0} : { *(.rel.erodata) }
52 .rel.got ${RELOCATING-0} : { *(.rel.got) }
53 .rel.ctors ${RELOCATING-0} : { *(.rel.ctors) }
54 .rel.dtors ${RELOCATING-0} : { *(.rel.dtors) }
55 .rel.init ${RELOCATING-0} : { *(.rel.init) }
56 .rel.fini ${RELOCATING-0} : { *(.rel.fini) }
57 .rel.bss ${RELOCATING-0} : { *(.rel.bss) }
58 .rel.plt ${RELOCATING-0} : { *(.rel.plt) }
59
60 .init ${RELOCATING-0} : { *(.init) } =${NOP-0}
61 ${DATA_PLT-${PLT}}
62
b0f76434 63 /* Internal text space */
03ab605a 64 .stext ${RELOCATING-0} : { *(.stext) } ${RELOCATING+ > text}
b0f76434 65
b0f76434
MM
66 /* Internal text space or external memory */
67 .text :
68 {
b0f76434
MM
69 *(.text)
70 *(.gnu.linkonce.t*)
71 *(.init)
72 *(.fini)
b0f76434
MM
73 ${RELOCATING+ _etext = . ; }
74 } ${RELOCATING+ > ${TEXT_MEMORY}}
75
76 /* Internal data space */
03ab605a
MM
77 .srodata ${RELOCATING-0} : { *(.srodata) } ${RELOCATING+ > data}
78 .sdata ${RELOCATING-0} : { *(.sdata) } ${RELOCATING+ > data}
b0f76434 79
b0f76434 80 /* Internal data space or external memory */
b0f76434 81 .rodata ${RELOCATING-0} : { *(.rodata) } ${RELOCATING+ > ${DATA_MEMORY}}
03ab605a
MM
82
83 /* C++ exception support. */
84 .eh_frame ${RELOCATING-0} : { *(.eh_frame) } ${RELOCATING+ > ${DATA_MEMORY}}
b0f76434
MM
85
86 .ctors ${RELOCATING-0} :
87 {
03ab605a 88 ${CONSTRUCTING+ __CTOR_LIST__ = .; }
b0f76434 89 *(.ctors)
03ab605a 90 ${CONSTRUCTING+ __CTOR_END__ = .; }
b0f76434
MM
91 } ${RELOCATING+ > ${DATA_MEMORY}}
92
93 .dtors ${RELOCATING-0} :
94 {
03ab605a 95 ${CONSTRUCTING+ __DTOR_LIST__ = .; }
b0f76434 96 *(.dtors)
03ab605a 97 ${CONSTRUCTING+ __DTOR_END__ = .; }
b0f76434
MM
98 } ${RELOCATING+ > ${DATA_MEMORY}}
99
100 .data ${RELOCATING-0} :
101 {
102 *(.data)
103 *(.gnu.linkonce.d*)
104 ${CONSTRUCTING+CONSTRUCTORS}
105 ${RELOCATING+ _edata = . ; }
106 } ${RELOCATING+ > ${DATA_MEMORY}}
107
27be0122
MM
108 /* External memory */
109 .etext ${RELOCATING-0} :
110 {
111 ${RELOCATING+ PROVIDE (__etext_start = .) ; }
112 *(.etext)
113 ${RELOCATING+ PROVIDE (__etext_end = .) ; }
114 } ${RELOCATING+ > emem}
115
03ab605a
MM
116 .erodata ${RELOCATING-0} : { *(.erodata) } ${RELOCATING+ > emem}
117 .edata ${RELOCATING-0} : { *(.edata) } ${RELOCATING+ > emem}
27be0122 118
b0f76434
MM
119 .sbss ${RELOCATING-0} :
120 {
121 ${RELOCATING+ PROVIDE (__sbss_start = .) ; }
122 *(.sbss)
123 ${RELOCATING+ PROVIDE (__sbss_end = .) ; }
124 } ${RELOCATING+ > data}
125
126 .ebss ${RELOCATING-0} :
127 {
128 ${RELOCATING+ PROVIDE (__ebss_start = .) ; }
129 *(.ebss)
130 ${RELOCATING+ PROVIDE (__ebss_end = .) ; }
131 } ${RELOCATING+ > data}
132
133 .bss ${RELOCATING-0} :
134 {
135 ${RELOCATING+ PROVIDE (__bss_start = .) ; }
136 *(.bss)
137 *(COMMON)
138 ${RELOCATING+ PROVIDE (__bss_end = .) ; }
139 ${RELOCATING+ _end = . ; }
140 } ${RELOCATING+ > ${DATA_MEMORY}}
141
142 /* Stabs debugging sections. */
143 .stab 0 : { *(.stab) }
144 .stabstr 0 : { *(.stabstr) }
145 .stab.excl 0 : { *(.stab.excl) }
146 .stab.exclstr 0 : { *(.stab.exclstr) }
147 .stab.index 0 : { *(.stab.index) }
148 .stab.indexstr 0 : { *(.stab.indexstr) }
149
150 .comment 0 : { *(.comment) }
151
152 /* DWARF debug sections.
153 Symbols in the DWARF debugging sections are relative to the beginning
154 of the section so we begin them at 0. */
155
156 /* DWARF 1 */
157 .debug 0 : { *(.debug) }
158 .line 0 : { *(.line) }
159
160 /* GNU DWARF 1 extensions */
161 .debug_srcinfo 0 : { *(.debug_srcinfo) }
162 .debug_sfnames 0 : { *(.debug_sfnames) }
163
164 /* DWARF 1.1 and DWARF 2 */
165 .debug_aranges 0 : { *(.debug_aranges) }
166 .debug_pubnames 0 : { *(.debug_pubnames) }
167
168 /* DWARF 2 */
169 .debug_info 0 : { *(.debug_info) }
170 .debug_abbrev 0 : { *(.debug_abbrev) }
171 .debug_line 0 : { *(.debug_line) }
172 .debug_frame 0 : { *(.debug_frame) }
173 .debug_str 0 : { *(.debug_str) }
174 .debug_loc 0 : { *(.debug_loc) }
175 .debug_macinfo 0 : { *(.debug_macinfo) }
176
177 PROVIDE (__stack = ${STACK_START_ADDR});
178}
179EOF
180
181
182
183
This page took 0.042577 seconds and 4 git commands to generate.