From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id ACBA73889E1D; Thu, 28 Sep 2023 17:58:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACBA73889E1D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695923889; bh=WqTYv0x3Sdn0qZaJwc5IqHR3pBotMe0+K3Rv/YaOEes=; h=From:To:Subject:Date:From; b=ofJ6/tPkglA0RBhiC4ZPKCzgY+ecPD5sGqkVw1dfaqIPXJl11sHLbRt9y90nJVPLB 7J85rsrIzyGrM/whUzAldHlD7BmYW+oK/ld82h8ot+XfYH2JXFlBqTwoVHEUfYYcaA egrThobiwEbWuFL0PDdym/X2v7QEB42+erah8mP0= 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: b4d12698e4845f89a8c2a164df3259e56f47e1eb X-Git-Newrev: 78a48fdc175a8416f82d68dc94a02a7638514779 Message-Id: <20230928175809.ACBA73889E1D@sourceware.org> Date: Thu, 28 Sep 2023 17:58:09 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=78a48fdc175a8416f82d68dc94a02a7638514779 commit 78a48fdc175a8416f82d68dc94a02a7638514779 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 ef0584f920..4caa40ce8b 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 3243ed1f71..9302467750 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