Retro68/binutils/ld/testsuite/ld-msp430-elf/initarray.s
Wolfgang Thaller f485e125c4 binutils 2.39
2022-10-27 20:45:45 +02:00

22 lines
305 B
ArmAsm

.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