diff options
Diffstat (limited to 'test/pecoff/Inputs/armnt-import.s')
-rw-r--r-- | test/pecoff/Inputs/armnt-import.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/pecoff/Inputs/armnt-import.s b/test/pecoff/Inputs/armnt-import.s new file mode 100644 index 0000000000000..2790d0edc8d9a --- /dev/null +++ b/test/pecoff/Inputs/armnt-import.s @@ -0,0 +1,21 @@ + +# void __declspec(dllimport) function(void); +# int mainCRTStartup(void) { return function(); } + + .syntax unified + .thumb + .text + + .def mainCRTStartup + .scl 2 + .type 32 + .endef + .global mainCRTStartup + .align 2 + .thumb_func +mainCRTStartup: + movw r0, :lower16:__imp_function + movt r0, :upper16:__imp_function + ldr r0, [r0] + bx r0 + |