* testsuite/retain_symbols_file_test.sh: Don't test for __tcf_0.
[deliverable/binutils-gdb.git] / ld / scripttempl / elf32msp430_3.sc
CommitLineData
2469cfa2
NC
1cat <<EOF
2OUTPUT_FORMAT("${OUTPUT_FORMAT}","${OUTPUT_FORMAT}","${OUTPUT_FORMAT}")
3OUTPUT_ARCH(${ARCH})
4
5MEMORY
6{
7 text (rx) : ORIGIN = $ROM_START, LENGTH = $ROM_SIZE
8 data (rwx) : ORIGIN = $RAM_START, LENGTH = $RAM_SIZE
9 vectors (rw) : ORIGIN = 0xffe0, LENGTH = 0x20
10}
11
12SECTIONS
13{
14 /* Read-only sections, merged into text segment. */
15 ${TEXT_DYNAMIC+${DYNAMIC}}
df381c72
AM
16 .hash : { *(.hash) }
17 .dynsym : { *(.dynsym) }
18 .dynstr : { *(.dynstr) }
19 .gnu.version : { *(.gnu.version) }
20 .gnu.version_d : { *(.gnu.version_d) }
21 .gnu.version_r : { *(.gnu.version_r) }
2469cfa2 22
df381c72
AM
23 .rel.init : { *(.rel.init) }
24 .rela.init : { *(.rela.init) }
25 .rel.text :
2469cfa2
NC
26 {
27 *(.rel.text)
28 ${RELOCATING+*(.rel.text.*)}
29 ${RELOCATING+*(.rel.gnu.linkonce.t*)}
30 }
df381c72 31 .rela.text :
2469cfa2
NC
32 {
33 *(.rela.text)
34 ${RELOCATING+*(.rela.text.*)}
35 ${RELOCATING+*(.rela.gnu.linkonce.t*)}
36 }
df381c72
AM
37 .rel.fini : { *(.rel.fini) }
38 .rela.fini : { *(.rela.fini) }
39 .rel.rodata :
2469cfa2
NC
40 {
41 *(.rel.rodata)
42 ${RELOCATING+*(.rel.rodata.*)}
43 ${RELOCATING+*(.rel.gnu.linkonce.r*)}
44 }
df381c72 45 .rela.rodata :
2469cfa2
NC
46 {
47 *(.rela.rodata)
48 ${RELOCATING+*(.rela.rodata.*)}
49 ${RELOCATING+*(.rela.gnu.linkonce.r*)}
50 }
df381c72 51 .rel.data :
2469cfa2
NC
52 {
53 *(.rel.data)
54 ${RELOCATING+*(.rel.data.*)}
55 ${RELOCATING+*(.rel.gnu.linkonce.d*)}
56 }
df381c72 57 .rela.data :
2469cfa2
NC
58 {
59 *(.rela.data)
60 ${RELOCATING+*(.rela.data.*)}
61 ${RELOCATING+*(.rela.gnu.linkonce.d*)}
62 }
df381c72
AM
63 .rel.ctors : { *(.rel.ctors) }
64 .rela.ctors : { *(.rela.ctors) }
65 .rel.dtors : { *(.rel.dtors) }
66 .rela.dtors : { *(.rela.dtors) }
67 .rel.got : { *(.rel.got) }
68 .rela.got : { *(.rela.got) }
69 .rel.bss : { *(.rel.bss) }
70 .rela.bss : { *(.rela.bss) }
71 .rel.plt : { *(.rel.plt) }
72 .rela.plt : { *(.rela.plt) }
2469cfa2
NC
73
74 /* Internal text space. */
75 .text :
76 {
d4b6ee67 77 ${RELOCATING+. = ALIGN(2);}
2469cfa2 78 *(.init)
d4b6ee67
NC
79 *(.init0) /* Start here after reset. */
80 *(.init1)
81 *(.init2)
82 *(.init3)
83 *(.init4)
84 *(.init5)
85 *(.init6) /* C++ constructors. */
86 *(.init7)
87 *(.init8)
88 *(.init9) /* Call main(). */
89
90 ${CONSTRUCTING+ __ctors_start = . ; }
91 ${CONSTRUCTING+ *(.ctors) }
92 ${CONSTRUCTING+ __ctors_end = . ; }
93 ${CONSTRUCTING+ __dtors_start = . ; }
94 ${CONSTRUCTING+ *(.dtors) }
95 ${CONSTRUCTING+ __dtors_end = . ; }
96
2469cfa2
NC
97 ${RELOCATING+. = ALIGN(2);}
98 *(.text)
99 ${RELOCATING+. = ALIGN(2);}
100 *(.text.*)
d4b6ee67 101
2469cfa2 102 ${RELOCATING+. = ALIGN(2);}
d4b6ee67
NC
103 *(.fini9)
104 *(.fini8)
105 *(.fini7)
106 *(.fini6) /* C++ destructors. */
107 *(.fini5)
108 *(.fini4)
109 *(.fini3)
110 *(.fini2)
111 *(.fini1)
112 *(.fini0) /* Infinite loop after program termination. */
2469cfa2 113 *(.fini)
d4b6ee67 114
2469cfa2
NC
115 ${RELOCATING+ _etext = . ; }
116 } ${RELOCATING+ > text}
117
df381c72 118 .data : ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text))}
2469cfa2
NC
119 {
120 ${RELOCATING+ PROVIDE (__data_start = .) ; }
121 *(.data)
122 *(.gnu.linkonce.d*)
123 ${RELOCATING+. = ALIGN(2);}
124 ${RELOCATING+ _edata = . ; }
125 } ${RELOCATING+ > data}
126
127 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
128 {
129 ${RELOCATING+ PROVIDE (__bss_start = .) ; }
130 *(.bss)
131 *(COMMON)
132 ${RELOCATING+ PROVIDE (__bss_end = .) ; }
133 ${RELOCATING+ _end = . ; }
134 } ${RELOCATING+ > data}
135
136 .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} :
137 {
138 ${RELOCATING+ PROVIDE (__noinit_start = .) ; }
139 *(.noinit)
140 *(COMMON)
141 ${RELOCATING+ PROVIDE (__noinit_end = .) ; }
142 ${RELOCATING+ _end = . ; }
143 } ${RELOCATING+ > data}
144
df381c72 145 .vectors :
2469cfa2
NC
146 {
147 ${RELOCATING+ PROVIDE (__vectors_start = .) ; }
148 *(.vectors*)
149 ${RELOCATING+ _vectors_end = . ; }
150 } ${RELOCATING+ > vectors}
151
152 /* Stabs debugging sections. */
153 .stab 0 : { *(.stab) }
154 .stabstr 0 : { *(.stabstr) }
155 .stab.excl 0 : { *(.stab.excl) }
156 .stab.exclstr 0 : { *(.stab.exclstr) }
157 .stab.index 0 : { *(.stab.index) }
158 .stab.indexstr 0 : { *(.stab.indexstr) }
159 .comment 0 : { *(.comment) }
160
161 /* DWARF debug sections.
162 Symbols in the DWARF debugging sections are relative to the beginning
163 of the section so we begin them at 0. */
164
165 /* DWARF 1 */
166 .debug 0 : { *(.debug) }
167 .line 0 : { *(.line) }
168
169 /* GNU DWARF 1 extensions */
170 .debug_srcinfo 0 : { *(.debug_srcinfo) }
171 .debug_sfnames 0 : { *(.debug_sfnames) }
172
173 /* DWARF 1.1 and DWARF 2 */
174 .debug_aranges 0 : { *(.debug_aranges) }
175 .debug_pubnames 0 : { *(.debug_pubnames) }
176
177 /* DWARF 2 */
178 .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
179 .debug_abbrev 0 : { *(.debug_abbrev) }
180 .debug_line 0 : { *(.debug_line) }
181 .debug_frame 0 : { *(.debug_frame) }
182 .debug_str 0 : { *(.debug_str) }
183 .debug_loc 0 : { *(.debug_loc) }
184 .debug_macinfo 0 : { *(.debug_macinfo) }
185
186 PROVIDE (__stack = ${STACK}) ;
db6a5910
NC
187 PROVIDE (__data_start_rom = _etext) ;
188 PROVIDE (__data_end_rom = _etext + SIZEOF (.data)) ;
189 PROVIDE (__noinit_start_rom = _etext + SIZEOF (.data)) ;
190 PROVIDE (__noinit_end_rom = _etext + SIZEOF (.data) + SIZEOF (.noinit)) ;
2469cfa2
NC
191}
192EOF
This page took 0.269441 seconds and 4 git commands to generate.