From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id C151B3858297; Wed, 7 Feb 2024 14:13:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C151B3858297 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707315193; bh=i3VTwGN0orSMzFm12JPF4LKbDhzQS2NxqkP3AxNo4xg=; h=From:To:Subject:Date:From; b=okOBgxtTz13ryrN+V8ObUKZQ6wQCLuhmSUI/Di8pWWF9F04BOlYClh5IqJ853l51b KW+qzXoCHKsJ4gJhUw3vGWxVG319UP1Q8Vlg849XgwRJZ44+aIdJQmKprPg29C2RxN naufg+mjXrkrI470tKiP85cCbXhOdsU9YuMZSkaw= 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: c60c8cf5f23d7ca76b7bf2f56724a22c9fa26f73 X-Git-Newrev: 947f7d8baca824bf14bd4486a3280316261f687a Message-Id: <20240207141313.C151B3858297@sourceware.org> Date: Wed, 7 Feb 2024 14:13:13 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=947f7d8baca824bf14bd4486a3280316261f687a commit 947f7d8baca824bf14bd4486a3280316261f687a 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