From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 0BD983858CD1; Wed, 17 Apr 2024 20:13:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0BD983858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713384806; bh=PihGkaFbvroPDdZoHCt0vFIO4K23bHpEw23WfkWmte4=; h=From:To:Subject:Date:From; b=U7sB2ZnTPl5/LvBX6Mb+0rKrrKHn1VIoEeIo20ESJaXBFRd3Myevx00cwSk2FDoWK 3rAOZBEHYUr8L0IwnTx43CKD+pgh+YmzTAVz674soCNeovy0pVpZMW9dCSWcad/fn4 f5cHzc4nhYI+nomMtRhYga9Z8JZljNf/cj1LNVbw= 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: d57642f9fa4bb0a21c37ef0b19965c62c16ae46a X-Git-Newrev: f85b9dde83b9de846e4417608a3276d591538eb5 Message-Id: <20240417201326.0BD983858CD1@sourceware.org> Date: Wed, 17 Apr 2024 20:13:25 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f85b9dde83b9de846e4417608a3276d591538eb5 commit f85b9dde83b9de846e4417608a3276d591538eb5 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 c47702608e..37af7ce6a2 100755 --- a/configure +++ b/configure @@ -6582,7 +6582,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 9846f28d05..b501ddd439 100644 --- a/configure.ac +++ b/configure.ac @@ -1126,7 +1126,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