aboutsummaryrefslogtreecommitdiff
path: root/test/MC/ELF/weakref-plt.s
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-11 17:24:43 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-11 17:24:43 +0000
commit9302bd664d930e7e6b61e208b0cca06fe71e8eb3 (patch)
treea47ff74a28912fc6e2f2dfc02cbed9844187b694 /test/MC/ELF/weakref-plt.s
parent1e68fdb946d76547646d2dad0f768a405041f037 (diff)
Make AliasedSymbol able to handle MCTargetExpr. They can get here if
a weakref is used with a VariantKind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118798 91177308-0d34-0410-b5e6-96231b3b80d8
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 0000000000..26ba3f6df5
--- /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)