]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/pecoff/Inputs/armnt-import.s
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / pecoff / Inputs / armnt-import.s
1
2 # void __declspec(dllimport) function(void);
3 # int mainCRTStartup(void) { return function(); }
4
5         .syntax unified
6         .thumb
7         .text
8
9         .def mainCRTStartup
10                 .scl 2
11                 .type 32
12         .endef
13         .global mainCRTStartup
14         .align 2
15         .thumb_func
16 mainCRTStartup:
17         movw r0, :lower16:__imp_function
18         movt r0, :upper16:__imp_function
19         ldr r0, [r0]
20         bx r0
21