From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 38AD73857C4E; Tue, 4 Oct 2022 13:05:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38AD73857C4E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664888721; bh=vO0MakSUZmphv5XDEg4mt3FCPTaOt00I7RwAhmviFVU=; h=From:To:Subject:Date:From; b=GgDN274uNG5v11uhC32oQY5dJoQkkuAIonEFyi3oJLxUsGO5iCjjvidHZ/KGVfDEf 9aJg+LGtsOhb+yL1ekzCaDnjRzOGdrnatEZtQuvfmooTDdBx9LJjYL8Xb8wVE8lEGc IqbVbAPrrSAR7+6a6ATRIFsjII1V9vXbSVG9Fab0= 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: 3a4e0697640b58a95b18b35ee90d374aea1899f4 X-Git-Newrev: e6451fd8cf6a78eac79b1df6076d70d79cb9e74b Message-Id: <20221004130521.38AD73857C4E@sourceware.org> Date: Tue, 4 Oct 2022 13:05:21 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e6451fd8cf6a78eac79b1df6076d70d79cb9e74b commit e6451fd8cf6a78eac79b1df6076d70d79cb9e74b 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