diff options
Diffstat (limited to 'test/ELF/gnu-ifunc-gotpcrel.s')
-rw-r--r-- | test/ELF/gnu-ifunc-gotpcrel.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ELF/gnu-ifunc-gotpcrel.s b/test/ELF/gnu-ifunc-gotpcrel.s new file mode 100644 index 000000000000..08aa0af37a1b --- /dev/null +++ b/test/ELF/gnu-ifunc-gotpcrel.s @@ -0,0 +1,14 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/gnu-ifunc-gotpcrel.s -o %t2.o +# RUN: ld.lld -shared %t2.o -o %t2.so +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o +# RUN: ld.lld %t.o %t2.so -o %t +# RUN: llvm-readobj -dyn-relocations %t | FileCheck %s + +# CHECK: Dynamic Relocations { +# CHECK-NEXT: 0x120B0 R_X86_64_GLOB_DAT foo 0x0 +# CHECK-NEXT: } + +.globl _start +_start: +mov foo@gotpcrel(%rip), %rax |