aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-pe/symbols-ordinals-hints-call-imports.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-pe/symbols-ordinals-hints-call-imports.s')
-rw-r--r--ld/testsuite/ld-pe/symbols-ordinals-hints-call-imports.s23
1 files changed, 16 insertions, 7 deletions
diff --git a/ld/testsuite/ld-pe/symbols-ordinals-hints-call-imports.s b/ld/testsuite/ld-pe/symbols-ordinals-hints-call-imports.s
index 475f72e..57fd3ed 100644
--- a/ld/testsuite/ld-pe/symbols-ordinals-hints-call-imports.s
+++ b/ld/testsuite/ld-pe/symbols-ordinals-hints-call-imports.s
@@ -1,8 +1,17 @@
-.global _func
+.ifdef UNDERSCORE
+ .global _func
_func:
- call __imp__sym1
- call __imp__sym2
- call __imp__sym3
- call __imp__sym4
- call __imp__sym5
- ret
+ .dc.a __imp__sym1
+ .dc.a __imp__sym2
+ .dc.a __imp__sym3
+ .dc.a __imp__sym4
+ .dc.a __imp__sym5
+.else
+ .global func
+func:
+ .dc.a __imp_sym1
+ .dc.a __imp_sym2
+ .dc.a __imp_sym3
+ .dc.a __imp_sym4
+ .dc.a __imp_sym5
+.endif