summaryrefslogtreecommitdiff
path: root/test/ELF/gnu-ifunc.s
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:48:50 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:48:50 +0000
commit1c98619801a5705c688e683be3ef9d70169a0686 (patch)
tree8422105cd1a94c368315f2db16b9ac746cf7c000 /test/ELF/gnu-ifunc.s
parentf4f3ce4613680903220815690ad79fc7ba0a2e26 (diff)
downloadsrc-test2-1c98619801a5705c688e683be3ef9d70169a0686.tar.gz
src-test2-1c98619801a5705c688e683be3ef9d70169a0686.zip
Notes
Diffstat (limited to 'test/ELF/gnu-ifunc.s')
-rw-r--r--test/ELF/gnu-ifunc.s18
1 files changed, 11 insertions, 7 deletions
diff --git a/test/ELF/gnu-ifunc.s b/test/ELF/gnu-ifunc.s
index b04f2758e22c..5336c89a563b 100644
--- a/test/ELF/gnu-ifunc.s
+++ b/test/ELF/gnu-ifunc.s
@@ -1,7 +1,7 @@
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: ld.lld -static %t.o -o %tout
// RUN: llvm-objdump -d %tout | FileCheck %s --check-prefix=DISASM
-// RUN: llvm-readobj -r -symbols -sections %tout | FileCheck %s --check-prefix=CHECK
+// RUN: llvm-readobj -r -symbols -sections %tout | FileCheck %s
// REQUIRES: x86
// CHECK: Sections [
@@ -42,8 +42,10 @@
// CHECK-NEXT: Size: 0
// CHECK-NEXT: Binding: Local
// CHECK-NEXT: Type: None
-// CHECK-NEXT: Other: 0
-// CHECK-NEXT: Section: Absolute
+// CHECK-NEXT: Other [
+// CHECK-NEXT: STV_HIDDEN
+// CHECK-NEXT: ]
+// CHECK-NEXT: Section: .rela.plt
// CHECK-NEXT: }
// CHECK-NEXT: Symbol {
// CHECK-NEXT: Name: __rela_iplt_start
@@ -51,8 +53,10 @@
// CHECK-NEXT: Size: 0
// CHECK-NEXT: Binding: Local
// CHECK-NEXT: Type: None
-// CHECK-NEXT: Other: 0
-// CHECK-NEXT: Section: Absolute
+// CHECK-NEXT: Other [
+// CHECK-NEXT: STV_HIDDEN
+// CHECK-NEXT: ]
+// CHECK-NEXT: Section: .rela.plt
// CHECK-NEXT: }
// CHECK-NEXT: Symbol {
// CHECK-NEXT: Name: _start
@@ -93,6 +97,7 @@
// DISASM-NEXT: 11007: e8 34 00 00 00 callq 52
// DISASM-NEXT: 1100c: ba 58 01 01 00 movl $65880, %edx
// DISASM-NEXT: 11011: ba 88 01 01 00 movl $65928, %edx
+// DISASM-NEXT: 11016: ba 89 01 01 00 movl $65929, %edx
// DISASM-NEXT: Disassembly of section .plt:
// DISASM-NEXT: .plt:
// DISASM-NEXT: 11020: ff 35 e2 0f 00 00 pushq 4066(%rip)
@@ -108,13 +113,11 @@
.text
.type foo STT_GNU_IFUNC
.globl foo
-.type foo, @function
foo:
ret
.type bar STT_GNU_IFUNC
.globl bar
-.type bar, @function
bar:
ret
@@ -124,3 +127,4 @@ _start:
call bar
movl $__rela_iplt_start,%edx
movl $__rela_iplt_end,%edx
+ movl $__rela_iplt_end + 1,%edx