From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 4F01D3858427; Thu, 21 Dec 2023 18:59:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F01D3858427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703185196; bh=E63gppqMjxvT+br7SPhhIjFsNhhJ0HS6rj608h+42Yg=; h=From:To:Subject:Date:From; b=KsJ4BURtnsYupGpZynC2egNJHS1OLxnDRhLfKvYTIxZSnrqumTMIHI+Dz5zBBL9tF AVK9zKNBnH+4ASCNMQxulWjmhxh1APIw9JEaaCJbwagR3TJ1TukZTAFhdHKLV/Cw7g uQTWsDsYIr1fz3ehK0iDqhkXMY+MNMSaRQHBcKEk= 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: b28e3e97778d52bbac931eb3b7a2ecdf3b12e9dc X-Git-Newrev: d7652193104217aaad0cce59c3cfefef3a897ec3 Message-Id: <20231221185956.4F01D3858427@sourceware.org> Date: Thu, 21 Dec 2023 18:59:56 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d7652193104217aaad0cce59c3cfefef3a897ec3 commit d7652193104217aaad0cce59c3cfefef3a897ec3 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 5bc371dd41..49448ab05c 100755 --- a/configure +++ b/configure @@ -6578,7 +6578,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