summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/thumb2-bl-undefweak.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-arm/thumb2-bl-undefweak.s')
-rw-r--r--ld/testsuite/ld-arm/thumb2-bl-undefweak.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/thumb2-bl-undefweak.s b/ld/testsuite/ld-arm/thumb2-bl-undefweak.s
new file mode 100644
index 0000000..5e70eea
--- /dev/null
+++ b/ld/testsuite/ld-arm/thumb2-bl-undefweak.s
@@ -0,0 +1,10 @@
+@ Test that calls to undefined weak functions resolve to call through
+@ the PLT in shared libraries.
+
+ .arch armv7
+ .syntax unified
+ .text
+ .thumb_func
+foo:
+ bl bar
+ .weak bar