1// This test checks that the pointers to PLT are properly updated. 2// The test is using lld linker. 3 4// Non-PIE: 5RUN: %clang %cflags -no-pie %p/../Inputs/plt.c -fuse-ld=lld \ 6RUN: -o %t.lld.exe -Wl,-q 7RUN: llvm-bolt %t.lld.exe -o %t.lld.bolt.exe --use-old-text=0 --lite=0 8RUN: %t.lld.bolt.exe | FileCheck %s 9 10// PIE: 11RUN: %clang %cflags -fPIC -pie %p/../Inputs/plt.c -fuse-ld=lld \ 12RUN: -o %t.lld.pie.exe -Wl,-q 13RUN: llvm-bolt %t.lld.pie.exe -o %t.lld.bolt.pie.exe --use-old-text=0 --lite=0 14RUN: %t.lld.bolt.pie.exe | FileCheck %s 15 16CHECK: Test completed 17