From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 445AA3858C27; Sun, 2 Jan 2022 14:00:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 445AA3858C27 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug build/28738] New: LIBC_LINKER_FEATURE doesn't work on linker -z option Date: Sun, 02 Jan 2022 14:00:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2022 14:00:15 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28738 Bug ID: 28738 Summary: LIBC_LINKER_FEATURE doesn't work on linker -z option Product: glibc Version: 2.35 Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com CC: carlos at redhat dot com Target Milestone: --- [hjl@gnu-tgl-2 tmp]$ touch x.c [hjl@gnu-tgl-2 tmp]$ gcc -shared -Wl,-z,foobar x.c /usr/local/bin/ld: warning: -z foobar ignored [hjl@gnu-tgl-2 tmp]$ echo $? 0 [hjl@gnu-tgl-2 tmp]$=20 But LIBC_LINKER_FEATURE has dnl Check linker option support. dnl LIBC_LINKER_FEATURE([ld_option], [cc_option], [action-if-true], [action-if-false]) AC_DEFUN([LIBC_LINKER_FEATURE], [AC_MSG_CHECKING([for linker that supports $1]) libc_linker_feature=3Dno if test x"$gnu_ld" =3D x"yes"; then cat > conftest.c <&AS_MESSAGE_LOG_FD]) then libc_linker_feature=3Dyes fi rm -f conftest* fi Check for any linker -z option will be successful. --=20 You are receiving this mail because: You are on the CC list for the bug.=