From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id DEA58385841D; Wed, 17 Apr 2024 20:15:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DEA58385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713384923; bh=e2SxfVQNNdkYCTWBN7alPK/gDZlr/xgdBG3b56iff6c=; h=From:To:Subject:Date:From; b=qJkdivuaU3vmNGDteP7LwScPjZcgMzVfeH2DsbpPaHpsNfGD1mwZhP9l4tGQ0gs0F uQn1JfwgykcssrFRuHiUTJu26KLm5dRVVZ5K0rAizUGPR2SoqKSi6M0gPINjVQ4owi FH6nSpWUvqpfYjWgKvn9QOGsLBkYZKPNE61z6ywY= 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] x86_64: Fix mark-plt configure test X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: db7a80b30f1972456fde5a0db1e1047b048fdf28 X-Git-Newrev: c72809e0d871e8eebee20a6d9d0319392555e3d5 Message-Id: <20240417201523.DEA58385841D@sourceware.org> Date: Wed, 17 Apr 2024 20:15:23 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c72809e0d871e8eebee20a6d9d0319392555e3d5 commit c72809e0d871e8eebee20a6d9d0319392555e3d5 Author: Adhemerval Zanella Date: Fri Feb 9 13:36:22 2024 -0300 x86_64: Fix mark-plt configure test Diff: --- sysdeps/x86_64/configure | 4 ++-- sysdeps/x86_64/configure.ac | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure index f22ea7c548..e641e75d24 100755 --- a/sysdeps/x86_64/configure +++ b/sysdeps/x86_64/configure @@ -32,7 +32,7 @@ cat > conftest.c <&5 @@ -41,7 +41,7 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } then - if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,mark-plt -nostdlib \ + if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,mark-plt, -Wl,--fatal-warnings -nostdlib \ -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | grep "warning: -z mark-plt ignored" > /dev/null 2>&1; then true diff --git a/sysdeps/x86_64/configure.ac b/sysdeps/x86_64/configure.ac index 78157222b8..57caf63826 100644 --- a/sysdeps/x86_64/configure.ac +++ b/sysdeps/x86_64/configure.ac @@ -10,7 +10,7 @@ LIBC_TRY_CC_OPTION([-mprefer-vector-width=128], LIBC_CONFIG_VAR([config-cflags-mprefer-vector-width], [$libc_cv_cc_mprefer_vector_width]) -LIBC_LINKER_FEATURE([-z mark-plt], [-Wl,-z,mark-plt], +LIBC_LINKER_FEATURE([-z mark-plt], [-Wl,-z,mark-plt, -Wl,--fatal-warnings], [libc_cv_z_mark_plt=yes], [libc_cv_z_mark_plt=no]) LIBC_CONFIG_VAR([have-z-mark-plt], [$libc_cv_z_mark_plt])