From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 0A8CD3858419; Mon, 29 Jan 2024 18:03:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A8CD3858419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706551409; bh=CoHsQgQ8OpSbkoC6aky6ZMOI79HCxLKB3V1Sv7o2EcQ=; h=From:To:Subject:Date:From; b=Ih+Im6021nkCE6uiSzkNSWWjC3jk/jP97Iuj8KcOVqOrIB4vaOF4zTKPFRxP3EAOh EsBo4CaQIIc14gQifH04tzgYtd0YblLy8cZCf6J/vi2eO+W19HquiQUgElGjYfxwqR ldzfLv6bh7hW275eClE7gn02FZQFFdqqla1EYNuc= 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: f90df7d87ed46f891c784dafb3034340f51cf104 X-Git-Newrev: 4f64d69559798f438dc9e0e0ccde189405260064 Message-Id: <20240129180329.0A8CD3858419@sourceware.org> Date: Mon, 29 Jan 2024 18:03:28 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4f64d69559798f438dc9e0e0ccde189405260064 commit 4f64d69559798f438dc9e0e0ccde189405260064 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 296fcb6e0b..db058a78b5 100755 --- a/configure +++ b/configure @@ -6579,7 +6579,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 80bf04627b..d8b1843593 100644 --- a/configure.ac +++ b/configure.ac @@ -1123,7 +1123,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