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