summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2011-12-12 17:34:04 +0000
committerRoman Divacky <rdivacky@freebsd.org>2011-12-12 17:34:04 +0000
commita0c17a495b12debcb7f206993bbc6020e2e6e8df (patch)
treede8c97fac0dbb38a0e2480ea66776796b61943e7 /test
parentb813f924a749396ffb4a4bd087ee1dbb678551f3 (diff)
downloadllvm-a0c17a495b12debcb7f206993bbc6020e2e6e8df.tar.gz
llvm-a0c17a495b12debcb7f206993bbc6020e2e6e8df.tar.bz2
llvm-a0c17a495b12debcb7f206993bbc6020e2e6e8df.tar.xz
Add support for gnu_indirect_function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ELF/type.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/MC/ELF/type.s b/test/MC/ELF/type.s
index 2b25a6b69f..ec53e4ffa5 100644
--- a/test/MC/ELF/type.s
+++ b/test/MC/ELF/type.s
@@ -12,6 +12,10 @@ bar:
// Test that gnu_unique_object is accepted.
.type zed,@gnu_unique_object
+ifunc:
+ .global ifunc
+ .type ifunc,@gnu_indirect_function
+
// CHECK: # Symbol 4
// CHECK-NEXT: (('st_name', 0x00000005) # 'bar'
// CHECK-NEXT: ('st_bind', 0x1)
@@ -30,3 +34,13 @@ bar:
// CHECK-NEXT: ('st_value', 0x0000000000000000)
// CHECK-NEXT: ('st_size', 0x0000000000000000)
// CHECK-NEXT: ),
+// CHECK-NEXT: # Symbol 6
+// CHECK-NEXT: (('st_name', 0x00000009) # 'ifunc'
+// CHECK-NEXT: ('st_bind', 0x1)
+// CHECK-NEXT: ('st_type', 0xa)
+// CHECK-NEXT: ('st_other', 0x00)
+// CHECK-NEXT: ('st_shndx', 0x0001)
+// CHECK-NEXT: ('st_value', 0x0000000000000000)
+// CHECK-NEXT: ('st_size', 0x0000000000000000)
+// CHECK-NEXT: ),
+