diff options
Diffstat (limited to 'bolt/test/runtime/plt-lld.test')
-rw-r--r-- | bolt/test/runtime/plt-lld.test | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/bolt/test/runtime/plt-lld.test b/bolt/test/runtime/plt-lld.test index f2c4babd5e3d..b52652f606dd 100644 --- a/bolt/test/runtime/plt-lld.test +++ b/bolt/test/runtime/plt-lld.test @@ -1,9 +1,16 @@ // This test checks that the pointers to PLT are properly updated. // The test is using lld linker. -// RUN: %clang %cflags -no-pie %p/../Inputs/plt.c -fuse-ld=lld \ -// RUN: -o %t.lld.exe -Wl,-q -// RUN: llvm-bolt %t.lld.exe -o %t.lld.bolt.exe -use-old-text=0 -lite=0 -// RUN: %t.lld.bolt.exe | FileCheck %s +// Non-PIE: +RUN: %clang %cflags -no-pie %p/../Inputs/plt.c -fuse-ld=lld \ +RUN: -o %t.lld.exe -Wl,-q +RUN: llvm-bolt %t.lld.exe -o %t.lld.bolt.exe -use-old-text=0 -lite=0 +RUN: %t.lld.bolt.exe | FileCheck %s -// CHECK: Test completed +// PIE: +RUN: %clang %cflags -fPIC -pie %p/../Inputs/plt.c -fuse-ld=lld \ +RUN: -o %t.lld.pie.exe -Wl,-q +RUN: llvm-bolt %t.lld.pie.exe -o %t.lld.bolt.pie.exe -use-old-text=0 -lite=0 +RUN: %t.lld.bolt.pie.exe | FileCheck %s + +CHECK: Test completed |