From: Amir Ayupov Date: Wed, 13 Apr 2022 18:46:59 +0000 (-0700) Subject: [BOLT][TEST] Add -no-pie to two tests X-Git-Tag: upstream/15.0.7~10528 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04641b212191e3cea73904d37c5a59b0f87f3247;p=platform%2Fupstream%2Fllvm.git [BOLT][TEST] Add -no-pie to two tests Missed these two tests in D123329 in a rebase. --- diff --git a/bolt/test/runtime/iplt.c b/bolt/test/runtime/iplt.c index 518d53d..fb6420f 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 39cb231..f2c4bab 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