aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/weakref-plt.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/weakref-plt.s')
-rw-r--r--test/MC/ELF/weakref-plt.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/ELF/weakref-plt.s b/test/MC/ELF/weakref-plt.s
new file mode 100644
index 0000000..26ba3f6
--- /dev/null
+++ b/test/MC/ELF/weakref-plt.s
@@ -0,0 +1,8 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
+
+ .weakref bar,foo
+ call bar@PLT
+
+// CHECK: # Symbol 0x00000005
+// CHECK-NEXT: (('st_name', 0x00000001) # 'foo'
+// CHECK-NEXT: ('st_bind', 0x00000002)