* src-release (DEVO_SUPPORT): Correct typos.
[binutils.git] / ld / emulparams / msp430all.sh
blob57d21c2d409c326ecb62eeb3a0206c49b84e0ec8
1 #!/bin/sh
3 # This called by genscripts_extra.sh
5 MSP430_NAME=${EMULATION_NAME}
7 SCRIPT_NAME=elf32msp430
8 TEMPLATE_NAME=generic
9 EXTRA_EM_FILE=genelf
10 OUTPUT_FORMAT="elf32-msp430"
11 MACHINE=
12 MAXPAGESIZE=1
13 EMBEDDED=yes
15 if [ "${MSP430_NAME}" = "msp430x110" ] ; then
16 ARCH=msp:11
17 ROM_START=0xfc00
18 ROM_SIZE=0x3e0
19 RAM_START=0x0200
20 RAM_SIZE=128
21 STACK=0x280
24 if [ "${MSP430_NAME}" = "msp430x1101" ] ; then
25 ARCH=msp:110
26 ROM_START=0xfc00
27 ROM_SIZE=0x3e0
28 RAM_START=0x0200
29 RAM_SIZE=128
30 STACK=0x280
33 if [ "${MSP430_NAME}" = "msp430x1111" ] ; then
34 ARCH=msp:110
35 ROM_START=0xf800
36 ROM_SIZE=0x07e0
37 RAM_START=0x0200
38 RAM_SIZE=128
39 STACK=0x280
42 if [ "${MSP430_NAME}" = "msp430x112" ] ; then
43 ARCH=msp:11
44 ROM_START=0xf000
45 ROM_SIZE=0xfe0
46 RAM_START=0x0200
47 RAM_SIZE=256
48 STACK=0x300
51 if [ "${MSP430_NAME}" = "msp430x1121" ] ; then
52 ARCH=msp:110
53 ROM_START=0xf000
54 ROM_SIZE=0x0fe0
55 RAM_START=0x0200
56 RAM_SIZE=256
57 STACK=0x300
60 if [ "${MSP430_NAME}" = "msp430x1122" ] ; then
61 ARCH=msp:110
62 ROM_START=0xf000
63 ROM_SIZE=0x0fe0
64 RAM_START=0x0200
65 RAM_SIZE=256
66 STACK=0x300
69 if [ "${MSP430_NAME}" = "msp430x1132" ] ; then
70 ARCH=msp:110
71 ROM_START=0xe000
72 ROM_SIZE=0x1fe0
73 RAM_START=0x0200
74 RAM_SIZE=256
75 STACK=0x300
78 if [ "${MSP430_NAME}" = "msp430x122" ] ; then
79 ARCH=msp:12
80 ROM_START=0xf000
81 ROM_SIZE=0xfe0
82 RAM_START=0x0200
83 RAM_SIZE=256
84 STACK=0x300
87 if [ "${MSP430_NAME}" = "msp430x1222" ] ; then
88 ARCH=msp:12
89 ROM_START=0xf000
90 ROM_SIZE=0xfe0
91 RAM_START=0x0200
92 RAM_SIZE=256
93 STACK=0x300
96 if [ "${MSP430_NAME}" = "msp430x123" ] ; then
97 ARCH=msp:12
98 ROM_START=0xe000
99 ROM_SIZE=0x1fe0
100 RAM_START=0x0200
101 RAM_SIZE=256
102 STACK=0x300
105 if [ "${MSP430_NAME}" = "msp430x1232" ] ; then
106 ARCH=msp:12
107 ROM_START=0xe000
108 ROM_SIZE=0x1fe0
109 RAM_START=0x0200
110 RAM_SIZE=256
111 STACK=0x300
114 if [ "${MSP430_NAME}" = "msp430x133" ] ; then
115 ARCH=msp:13
116 ROM_START=0xe000
117 ROM_SIZE=0x1fe0
118 RAM_START=0x0200
119 RAM_SIZE=256
120 STACK=0x300
123 if [ "${MSP430_NAME}" = "msp430x1331" ] ; then
124 ARCH=msp:13
125 ROM_START=0xe000
126 ROM_SIZE=0x1fe0
127 RAM_START=0x0200
128 RAM_SIZE=256
129 STACK=0x300
132 if [ "${MSP430_NAME}" = "msp430x135" ] ; then
133 ARCH=msp:13
134 ROM_START=0xc000
135 ROM_SIZE=0x3fe0
136 RAM_START=0x0200
137 RAM_SIZE=512
138 STACK=0x400
141 if [ "${MSP430_NAME}" = "msp430x1351" ] ; then
142 ARCH=msp:13
143 ROM_START=0xc000
144 ROM_SIZE=0x3fe0
145 RAM_START=0x0200
146 RAM_SIZE=512
147 STACK=0x400
150 if [ "${MSP430_NAME}" = "msp430x147" ] ; then
151 ARCH=msp:14
152 ROM_START=0x8000
153 ROM_SIZE=0x7fe0
154 RAM_START=0x0200
155 RAM_SIZE=1K
156 STACK=0x600
159 if [ "${MSP430_NAME}" = "msp430x148" ] ; then
160 ARCH=msp:14
161 ROM_START=0x4000
162 ROM_SIZE=0xbfe0
163 RAM_START=0x0200
164 RAM_SIZE=0x0800
165 STACK=0xa00
168 if [ "${MSP430_NAME}" = "msp430x149" ] ; then
169 ARCH=msp:14
170 ROM_START=0x1100
171 ROM_SIZE=0xeee0
172 RAM_START=0x0200
173 RAM_SIZE=0x0800
174 STACK=0xa00
177 if [ "${MSP430_NAME}" = "msp430x155" ] ; then
178 ARCH=msp:15
179 ROM_START=0xc000
180 ROM_SIZE=0x3fe0
181 RAM_START=0x0200
182 RAM_SIZE=512
183 STACK=0x400
186 if [ "${MSP430_NAME}" = "msp430x156" ] ; then
187 ARCH=msp:15
188 ROM_START=0xa000
189 ROM_SIZE=0x5fe0
190 RAM_START=0x0200
191 RAM_SIZE=512
192 STACK=0x400
195 if [ "${MSP430_NAME}" = "msp430x157" ] ; then
196 ARCH=msp:15
197 ROM_START=0x8000
198 ROM_SIZE=0x7fe0
199 RAM_START=0x0200
200 RAM_SIZE=1K
201 STACK=0x600
204 if [ "${MSP430_NAME}" = "msp430x167" ] ; then
205 ARCH=msp:16
206 ROM_START=0x8000
207 ROM_SIZE=0x7fe0
208 RAM_START=0x0200
209 RAM_SIZE=1K
210 STACK=0x600
213 if [ "${MSP430_NAME}" = "msp430x168" ] ; then
214 ARCH=msp:16
215 ROM_START=0x4000
216 ROM_SIZE=0xbfe0
217 RAM_START=0x0200
218 RAM_SIZE=0x0800
219 STACK=0xa00
222 if [ "${MSP430_NAME}" = "msp430x169" ] ; then
223 ARCH=msp:16
224 ROM_START=0x1100
225 ROM_SIZE=0xeee0
226 RAM_START=0x0200
227 RAM_SIZE=0x0800
228 STACK=0xa00
231 if [ "${MSP430_NAME}" = "msp430x1610" ] ; then
232 ARCH=msp:16
233 ROM_START=0x8000
234 ROM_SIZE=0x7fe0
235 RAM_START=0x1100
236 RAM_SIZE=0x1400
237 STACK=0x2500
240 if [ "${MSP430_NAME}" = "msp430x1611" ] ; then
241 ARCH=msp:16
242 ROM_START=0x4000
243 ROM_SIZE=0xbfe0
244 RAM_START=0x1100
245 RAM_SIZE=0x2800
246 STACK=0x3900
249 if [ "${MSP430_NAME}" = "msp430x1612" ] ; then
250 ARCH=msp:16
251 ROM_START=0x2500
252 ROM_SIZE=0xdae0
253 RAM_START=0x1100
254 RAM_SIZE=0x1400
255 STACK=0x2500
258 if [ "${MSP430_NAME}" = "msp430x2101" ] ; then
259 ARCH=msp:21
260 ROM_START=0xFC00
261 ROM_SIZE=0x03e0
262 RAM_START=0x0200
263 RAM_SIZE=128
264 STACK=0x280
267 if [ "${MSP430_NAME}" = "msp430x2111" ] ; then
268 ARCH=msp:21
269 ROM_START=0xF800
270 ROM_SIZE=0x07e0
271 RAM_START=0x0200
272 RAM_SIZE=128
273 STACK=0x280
276 if [ "${MSP430_NAME}" = "msp430x2121" ] ; then
277 ARCH=msp:21
278 ROM_START=0xf000
279 ROM_SIZE=0x0fe0
280 RAM_START=0x0200
281 RAM_SIZE=256
282 STACK=0x300
285 if [ "${MSP430_NAME}" = "msp430x2131" ] ; then
286 ARCH=msp:21
287 ROM_START=0xe000
288 ROM_SIZE=0x1fe0
289 RAM_START=0x0200
290 RAM_SIZE=256
291 STACK=0x300
294 if [ "${MSP430_NAME}" = "msp430x311" ] ; then
295 ARCH=msp:31
296 SCRIPT_NAME=elf32msp430_3
297 ROM_START=0xf800
298 ROM_SIZE=0x07e0
299 RAM_START=0x0200
300 RAM_SIZE=128
301 STACK=0x280
304 if [ "${MSP430_NAME}" = "msp430x312" ] ; then
305 ARCH=msp:31
306 SCRIPT_NAME=elf32msp430_3
307 ROM_START=0xf000
308 ROM_SIZE=0x0fe0
309 RAM_START=0x0200
310 RAM_SIZE=256
311 STACK=0x300
314 if [ "${MSP430_NAME}" = "msp430x313" ] ; then
315 ARCH=msp:31
316 SCRIPT_NAME=elf32msp430_3
317 ROM_START=0xe000
318 ROM_SIZE=0x1fe0
319 RAM_START=0x0200
320 RAM_SIZE=256
321 STACK=0x300
324 if [ "${MSP430_NAME}" = "msp430x314" ] ; then
325 ARCH=msp:31
326 SCRIPT_NAME=elf32msp430_3
327 ROM_START=0xd000
328 ROM_SIZE=0x2fe0
329 RAM_START=0x0200
330 RAM_SIZE=512
331 STACK=0x400
334 if [ "${MSP430_NAME}" = "msp430x315" ] ; then
335 ARCH=msp:31
336 SCRIPT_NAME=elf32msp430_3
337 ROM_START=0xc000
338 ROM_SIZE=0x3fe0
339 RAM_START=0x0200
340 RAM_SIZE=512
341 STACK=0x400
344 if [ "${MSP430_NAME}" = "msp430x323" ] ; then
345 ARCH=msp:32
346 SCRIPT_NAME=elf32msp430_3
347 ROM_START=0xe000
348 ROM_SIZE=0x1fe0
349 RAM_START=0x0200
350 RAM_SIZE=256
351 STACK=0x300
354 if [ "${MSP430_NAME}" = "msp430x325" ] ; then
355 ARCH=msp:32
356 SCRIPT_NAME=elf32msp430_3
357 ROM_START=0xc000
358 ROM_SIZE=0x3fe0
359 RAM_START=0x0200
360 RAM_SIZE=512
361 STACK=0x400
364 if [ "${MSP430_NAME}" = "msp430x336" ] ; then
365 ARCH=msp:33
366 SCRIPT_NAME=elf32msp430_3
367 ROM_START=0xa000
368 ROM_SIZE=0x5fe0
369 RAM_START=0x0200
370 RAM_SIZE=1024
371 STACK=0x600
374 if [ "${MSP430_NAME}" = "msp430x337" ] ; then
375 ARCH=msp:33
376 SCRIPT_NAME=elf32msp430_3
377 ROM_START=0x8000
378 ROM_SIZE=0x7fe0
379 RAM_START=0x0200
380 RAM_SIZE=1024
381 STACK=0x600
384 if [ "${MSP430_NAME}" = "msp430x412" ] ; then
385 ARCH=msp:41
386 ROM_START=0xf000
387 ROM_SIZE=0x0fe0
388 RAM_START=0x0200
389 RAM_SIZE=256
390 STACK=0x300
393 if [ "${MSP430_NAME}" = "msp430x413" ] ; then
394 ARCH=msp:41
395 ROM_START=0xe000
396 ROM_SIZE=0x1fe0
397 RAM_START=0x0200
398 RAM_SIZE=256
399 STACK=0x300
402 if [ "${MSP430_NAME}" = "msp430x415" ] ; then
403 ARCH=msp:41
404 ROM_START=0xc000
405 ROM_SIZE=0x3fe0
406 RAM_START=0x0200
407 RAM_SIZE=512
408 STACK=0x400
411 if [ "${MSP430_NAME}" = "msp430x417" ] ; then
412 ARCH=msp:41
413 ROM_START=0x8000
414 ROM_SIZE=0x7fe0
415 RAM_START=0x0200
416 RAM_SIZE=1024
417 STACK=0x600
420 if [ "${MSP430_NAME}" = "msp430x435" ] ; then
421 ARCH=msp:43
422 ROM_START=0xc000
423 ROM_SIZE=0x3fe0
424 RAM_START=0x0200
425 RAM_SIZE=512
426 STACK=0x400
429 if [ "${MSP430_NAME}" = "msp430x436" ] ; then
430 ARCH=msp:43
431 ROM_START=0xa000
432 ROM_SIZE=0x5fe0
433 RAM_START=0x0200
434 RAM_SIZE=1024
435 STACK=0x600
438 if [ "${MSP430_NAME}" = "msp430x437" ] ; then
439 ARCH=msp:43
440 ROM_START=0x8000
441 ROM_SIZE=0x7fe0
442 RAM_START=0x0200
443 RAM_SIZE=1024
444 STACK=0x600
447 if [ "${MSP430_NAME}" = "msp430x447" ] ; then
448 ARCH=msp:44
449 ROM_START=0x8000
450 ROM_SIZE=0x7fe0
451 RAM_START=0x0200
452 RAM_SIZE=1024
453 STACK=0x600
456 if [ "${MSP430_NAME}" = "msp430x448" ] ; then
457 ARCH=msp:44
458 ROM_START=0x4000
459 ROM_SIZE=0xbfe0
460 RAM_START=0x0200
461 RAM_SIZE=0x0800
462 STACK=0xa00
465 if [ "${MSP430_NAME}" = "msp430x449" ] ; then
466 ARCH=msp:44
467 ROM_START=0x1100
468 ROM_SIZE=0xeee0
469 RAM_START=0x0200
470 RAM_SIZE=0x0800
471 STACK=0xa00
474 if [ "${MSP430_NAME}" = "msp430xE423" ] ; then
475 ARCH=msp:42
476 ROM_START=0xe000
477 ROM_SIZE=0x1fe0
478 RAM_START=0x0200
479 RAM_SIZE=256
480 STACK=0x300
483 if [ "${MSP430_NAME}" = "msp430xE425" ] ; then
484 ARCH=msp:42
485 ROM_START=0xc000
486 ROM_SIZE=0x3fe0
487 RAM_START=0x0200
488 RAM_SIZE=512
489 STACK=0x400
492 if [ "${MSP430_NAME}" = "msp430xE427" ] ; then
493 ARCH=msp:42
494 ROM_START=0x8000
495 ROM_SIZE=0x7fe0
496 RAM_START=0x0200
497 RAM_SIZE=1024
498 STACK=0x600
501 if [ "${MSP430_NAME}" = "msp430xG437" ] ; then
502 ARCH=msp:43
503 ROM_START=0x8000
504 ROM_SIZE=0x7fe0
505 RAM_START=0x0200
506 RAM_SIZE=1024
507 STACK=0x600
510 if [ "${MSP430_NAME}" = "msp430xG438" ] ; then
511 ARCH=msp:43
512 ROM_START=0x4000
513 ROM_SIZE=0xbef0
514 RAM_START=0x0200
515 RAM_SIZE=0x0800
516 STACK=0xa00
519 if [ "${MSP430_NAME}" = "msp430xG439" ] ; then
520 ARCH=msp:43
521 ROM_START=0x1100
522 ROM_SIZE=0xeee0
523 RAM_START=0x0200
524 RAM_SIZE=0x0800
525 STACK=0xa00
528 if [ "${MSP430_NAME}" = "msp430xW423" ] ; then
529 ARCH=msp:42
530 ROM_START=0xe000
531 ROM_SIZE=0x1fe0
532 RAM_START=0x0200
533 RAM_SIZE=256
534 STACK=0x300
537 if [ "${MSP430_NAME}" = "msp430xW425" ] ; then
538 ARCH=msp:42
539 ROM_START=0xc000
540 ROM_SIZE=0x3fe0
541 RAM_START=0x0200
542 RAM_SIZE=512
543 STACK=0x400
546 if [ "${MSP430_NAME}" = "msp430xW427" ] ; then
547 ARCH=msp:42
548 ROM_START=0x8000
549 ROM_SIZE=0x7fe0
550 RAM_START=0x0200
551 RAM_SIZE=0x400
552 STACK=0x600