From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id ADEBD385840A; Wed, 30 Aug 2023 12:42:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADEBD385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693399348; bh=5x8j6Tm2r546IvQyE9sVm47XXEToeKMmGDSjfDNLTTE=; h=From:To:Subject:Date:From; b=EzsVz6i0ySh4NQ/xK6BhlmN4aPZE6oW12rpWmJ5YwkJiCIvHG654O0pG2ubAtzfwf qlZtjcT1/IKOt938g+uv//2Wb0yAN6LFnwNCIf2mwdZDDVlDxaDC/MJAF4xqA6OjQY gzya31+WyZ3fZiEAqi0Ak52zDaPB9e6dnN3TfMQs= 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: 3ed0052c10bd676b41649aa6552a170f07c88e90 X-Git-Newrev: ea1c11630374a3eacbda523626c14d310dbd85b8 Message-Id: <20230830124228.ADEBD385840A@sourceware.org> Date: Wed, 30 Aug 2023 12:42:28 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ea1c11630374a3eacbda523626c14d310dbd85b8 commit ea1c11630374a3eacbda523626c14d310dbd85b8 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 92f4cd5f03..965c28a776 100755 --- a/configure +++ b/configure @@ -6704,7 +6704,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 eb4afa81f3..6e9b133110 100644 --- a/configure.ac +++ b/configure.ac @@ -1188,7 +1188,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