From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C11673858417; Mon, 1 Jan 2024 23:56:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C11673858417 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704153405; bh=17xl2TVhrt5yy2deOC17qWtBXvFJGFz4eY+IT54mqCI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=r4nUgREA/ZsVFo8rcRBISfbiWjKmFVgr3AvQUD5KRgoeWX1lR4IVkJtB4ux7EGayp p9IqsghhNTRiUzXUKXVg7tzqPKEPwQ67WkKU3evJoWfjYqSUHCvxzSwbUAihx7DGo7 Jhsda7P9FrYuUatJKjYcGb8W7Xq4ORCSG+XTroLw= From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/31187] Some CET tests fail with GCC 14 Date: Mon, 01 Jan 2024 23:56:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.39 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org 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: Message-ID: In-Reply-To: References: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31187 --- Comment #1 from Sourceware Commits --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;h=3Db5dcccfb12385ee492e= b074f6beb9ead56b5e5fd commit b5dcccfb12385ee492eb074f6beb9ead56b5e5fd Author: H.J. Lu Date: Mon Jan 1 07:55:18 2024 -0800 x86/cet: Add -fcf-protection=3Dnone before -fcf-protection=3Dbranch When shadow stack is enabled, some CET tests failed when compiled with GCC 14: FAIL: elf/tst-cet-legacy-4 FAIL: elf/tst-cet-legacy-5a FAIL: elf/tst-cet-legacy-6a which are caused by https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113039 These tests use -fcf-protection -fcf-protection=3Dbranch and assume that -fcf-protection=3Dbranch will override -fcf-protection. But this GCC 14 commit: https://gcc.gnu.org/git/gitweb.cgi?p=3Dgcc.git;h=3D1c6231c05bdcca changed the -fcf-protection behavior such that -fcf-protection -fcf-protection=3Dbranch is treated the same as -fcf-protection Use -fcf-protection -fcf-protection=3Dnone -fcf-protection=3Dbranch as the workaround. This fixes BZ #31187. Tested with GCC 13 and GCC 14 on Intel Tiger Lake. Reviewed-by: Noah Goldstein --=20 You are receiving this mail because: You are on the CC list for the bug.=