Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bolt
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2022-04-13 21:46:59 +0300
committerAmir Ayupov <aaupov@fb.com>2022-04-13 21:48:13 +0300
commit04641b212191e3cea73904d37c5a59b0f87f3247 (patch)
treefe3589520e68c9a78f1a3b4dcd8108ecda957a41 /bolt
parent6345d7f2a829faea56ad522a7d5180043f862a5c (diff)
[BOLT][TEST] Add -no-pie to two tests
Missed these two tests in D123329 in a rebase.
Diffstat (limited to 'bolt')
-rw-r--r--bolt/test/runtime/iplt.c2
-rw-r--r--bolt/test/runtime/plt-lld.test2
2 files changed, 2 insertions, 2 deletions
diff --git a/bolt/test/runtime/iplt.c b/bolt/test/runtime/iplt.c
index 518d53dff903..fb6420f828f6 100644
--- a/bolt/test/runtime/iplt.c
+++ b/bolt/test/runtime/iplt.c
@@ -1,6 +1,6 @@
// This test checks that the ifuncs works after bolt.
-// RUN: %clang %cflags %s -fuse-ld=lld \
+// RUN: %clang %cflags -no-pie %s -fuse-ld=lld \
// RUN: -o %t.exe -Wl,-q
// RUN: llvm-bolt %t.exe -o %t.bolt.exe -use-old-text=0 -lite=0
// RUN: %t.bolt.exe | FileCheck %s
diff --git a/bolt/test/runtime/plt-lld.test b/bolt/test/runtime/plt-lld.test
index 39cb23115ef2..f2c4babd5e3d 100644
--- a/bolt/test/runtime/plt-lld.test
+++ b/bolt/test/runtime/plt-lld.test
@@ -1,7 +1,7 @@
// This test checks that the pointers to PLT are properly updated.
// The test is using lld linker.
-// RUN: %clang %cflags %p/../Inputs/plt.c -fuse-ld=lld \
+// 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