From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 76BFA3858CDA; Tue, 2 Apr 2024 16:01:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76BFA3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712073697; bh=b4rMU4jk7p9AyPRnuxoDB0hVW22XyYr7rHoV4yQmmLI=; h=From:To:Subject:Date:From; b=SrFUm2hTt25fjdXUXs8y41mFXpEX6EiUnpxpqlfUyz4Zd/pom33bn4PwxMTTZ03Zy Mriupx08oWh0XJhx97v5aL3fV+3q1vzzSoBY6/9tmsEzP7RAwnbWmI8N61E6X4mNOI pbs5bQPyZKNCpW8idIC+i4EM5r/DbtYiXiMzo7Aw= 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: cbf9eeb0b0be6661d87e984e0753d0165b2f1113 X-Git-Newrev: 7a18c7d68b571905fd9c0f72d0e45c73538a4058 Message-Id: <20240402160137.76BFA3858CDA@sourceware.org> Date: Tue, 2 Apr 2024 16:01:37 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7a18c7d68b571905fd9c0f72d0e45c73538a4058 commit 7a18c7d68b571905fd9c0f72d0e45c73538a4058 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 47cb31a37f..48cc2989a8 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 3cd3006da8..e4770a366e 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])