From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id CA3393858430; Fri, 28 Oct 2022 17:47:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA3393858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666979255; bh=1/vtBrtEyHlWKldfYOkL9YHKEANiOZVnFLpPZXLoDQI=; h=From:To:Subject:Date:From; b=Qq8A88ezxascIKdhmI92VZXJim27rKTD+/a2LDhWngFuRR+84V/dSSW0V81F2hY12 LFukFRXPffCV1b874yhdy44uToBoxPGOPH1DqhMI5mPokAL1oCDZADNDFS572VjWHl Xfcf4yU0nCcy8WVOY4v3bnhXZw9R23DuggjsP34Y= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] Fix libc_cv_protected_data check if compiler defaults to PIE X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 99b3f8be01fa2f66ee23287d66ea432cb2f71bba X-Git-Newrev: 7df701fcde065130ca68f3e75398674b3d62a7f1 Message-Id: <20221028174735.CA3393858430@sourceware.org> Date: Fri, 28 Oct 2022 17:47:35 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7df701fcde065130ca68f3e75398674b3d62a7f1 commit 7df701fcde065130ca68f3e75398674b3d62a7f1 Author: Adhemerval Zanella Date: Thu Sep 1 15:19:23 2022 -0300 Fix libc_cv_protected_data check if compiler defaults to PIE Diff: --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index dba81022bf..a4e1e52fcf 100755 --- a/configure +++ b/configure @@ -5723,7 +5723,7 @@ EOF extern int bar; int main (void) { return bar; } EOF - if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so' + if { ac_try='${CC-cc} -fno-pie -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? diff --git a/configure.ac b/configure.ac index 149a897ce1..ddf6042c99 100644 --- a/configure.ac +++ b/configure.ac @@ -1214,7 +1214,7 @@ EOF extern int bar; int main (void) { return bar; } EOF - if AC_TRY_COMMAND(${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so); then + if AC_TRY_COMMAND(${CC-cc} -fno-pie -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so); then libc_cv_protected_data=yes fi fi