From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1415C15800F for ; Wed, 11 Jan 2023 07:54:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 59607E0C5A; Wed, 11 Jan 2023 07:54:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3EE57E0C5A for ; Wed, 11 Jan 2023 07:54:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 766B0340E39 for ; Wed, 11 Jan 2023 07:54:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DE24C76F for ; Wed, 11 Jan 2023 07:54:39 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1673421367.c8a1d365ff1349cc438352917863ed98ee34a80f.sam@gentoo> Subject: [gentoo-commits] proj/elfix:master commit in: misc/fix-gnustack/tests/ X-VCS-Repository: proj/elfix X-VCS-Files: misc/fix-gnustack/tests/Makefile.am X-VCS-Directories: misc/fix-gnustack/tests/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c8a1d365ff1349cc438352917863ed98ee34a80f X-VCS-Branch: master Date: Wed, 11 Jan 2023 07:54:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 72905176-5ee5-46d4-9acf-5021f026e2e2 X-Archives-Hash: 88388a5f93c57aca3b45cdea7fe93436 commit: c8a1d365ff1349cc438352917863ed98ee34a80f Author: Sam James gentoo org> AuthorDate: Wed Jan 11 07:09:53 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jan 11 07:16:07 2023 +0000 URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=c8a1d365 fix-gnustack: pass -Wl,-z,execstack for tests with Clang Clang doesn't create executable stacks by default, so we need to force it for the purposes of the tests. Signed-off-by: Sam James gentoo.org> misc/fix-gnustack/tests/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/fix-gnustack/tests/Makefile.am b/misc/fix-gnustack/tests/Makefile.am index ad573a3..17bec0d 100644 --- a/misc/fix-gnustack/tests/Makefile.am +++ b/misc/fix-gnustack/tests/Makefile.am @@ -8,8 +8,10 @@ bad-gnustack.s: bad-gnustack.c $(CC) $(CPPFLAGS) $(CFLAGS) -S $< $(SED) -i -e 's/GNU-stack,"",/GNU-stack,"x",/' $@ +# Clang doesn't create executable stacks by default, so +# tests for fix-gnustack fail without this. bad-gnustack$(EXEEXT): bad-gnustack.s - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< + $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-z,execstack -o $@ $< check_SCRIPTS = gnustacktest TEST = $(check_SCRIPTS)