22 lines · plain
1# REQUIRES: x862 3## Produce dynamic relocations (symbolic or GOT) for relocations to ifunc4## defined in a DSO.5 6# RUN: llvm-mc -filetype=obj -triple=x86_64 %S/Inputs/gnu-ifunc-dso.s -o %t1.o7# RUN: ld.lld -shared %t1.o -soname=so -o %t1.so8# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o9# RUN: ld.lld %t.o %t1.so -o %t10# RUN: llvm-readobj --dyn-relocations %t | FileCheck %s11# RUN: ld.lld -shared %t.o %t1.so -o %t.so12# RUN: llvm-readobj --dyn-relocations %t.so | FileCheck %s13 14# CHECK: Dynamic Relocations {15# CHECK-NEXT: R_X86_64_GLOB_DAT foo 0x016# CHECK-NEXT: R_X86_64_64 bar 0x017# CHECK-NEXT: }18 19.data20 mov foo@gotpcrel(%rip), %rax21 .quad bar22