summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-msp430-elf/initarray.s
blob: abbf86e8838c68d515c071f273bbd5d58123c64c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.text
	.section	.preinit_array,"aw"
	.short 42

	.section	.init_array,"aw"
	.short 43

	.section	.fini_array,"aw"
	.short 44

.text
	.global	main
	.type	main, @function
main:
	MOV #__preinit_array_start, R8
	MOV #__init_array_start, R9
	MOV #__fini_array_start, R10
  CALL @R8
  CALL @R9
  CALL @R10
	RET