]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-arm/farcall-mixed-lib2.s
Merge commit 'upstream/2.20'
[msp430-binutils.git] / ld / testsuite / ld-arm / farcall-mixed-lib2.s
diff --git a/ld/testsuite/ld-arm/farcall-mixed-lib2.s b/ld/testsuite/ld-arm/farcall-mixed-lib2.s
new file mode 100644 (file)
index 0000000..cd5a71f
--- /dev/null
@@ -0,0 +1,19 @@
+@ Create a large shared library so that calls through PLT to an undef
+@ symbol require insertion of a long branch stub.
+@ Check also calls to an undef weak symbol.
+
+       .text
+       .arch armv5t
+
+       .space 0x1000000
+       .p2align 4
+       .globl lib_func3
+       .type lib_func3, %function
+       .thumb_func
+       .code 16
+lib_func3:
+       bl      app_func
+       .weak   app_func_weak
+       bl      app_func_weak
+       bx lr
+       .size lib_func3, . - lib_func3