From patchwork Mon Nov 13 17:21:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 79774 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 444F83857707 for ; Mon, 13 Nov 2023 17:21:29 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id F2A6C3857344 for ; Mon, 13 Nov 2023 17:21:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F2A6C3857344 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F2A6C3857344 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699896077; cv=none; b=jeT9ud1LFlH7XEjLLwbVBJvqbwmI/psjZd/wXQFS3xs3JRAPO5MFF0Pe/mz7nu+aIrzbynA6LFhL/WrVAownMhLpum2/aGythhPhUtUC4Cn3O+1T/l4N0vAYzpoMgA6sZaQR3YzEafVTruzLTA73eqilL1BRoupsMS1i19lUPdc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699896077; c=relaxed/simple; bh=iWTR8Jw5weNEPJf2703aQsUjnbuLFQwBghd/zCijoHA=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=XxM98QfU+YFTA0zsACv2C7uENJh+braK7MYyr3SMNVxA9A9+qIIc5mKi4ILWTLU1uV3TtwC1T1dod4/VL+CMs91VxXoX8o1MsLkNsEiYYqeICAfKn/GS9M42TgYksXYviiwihoPWgiRxcEgJsv0qUMNh0WGFBFGcRSfnOnXiWIw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699896075; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eQa3U+CWx6BprnXnNo3i0j/V8pQZr3UcSjYlPVACI28=; b=FxfFWLPPZCHvOFH3x2JfN6i5xjkmuZazBZrASHbsa8ye2Sjgu/GfoLRe2KREYF9RCk+1MQ lPtm1HJhrl4ndtN1VLcYau8gRJM1oAfVe7FdefT8pjqWrs7Pl/mk4MN/J7mb+1uly2Ugff DeSPFifiu4LFy+xgYNZJAr1A/SaUiGc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-190-c596skMzM3SffcVW1N-NVA-1; Mon, 13 Nov 2023 12:21:14 -0500 X-MC-Unique: c596skMzM3SffcVW1N-NVA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 18FC3811E88 for ; Mon, 13 Nov 2023 17:21:14 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 733341C060B9 for ; Mon, 13 Nov 2023 17:21:13 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 2/2] nptl: Link tst-execstack-threads-mod.so with -z execstack In-Reply-To: <2d447c2aaead261f4449231379c4d1a15bf210a6.1699896042.git.fweimer@redhat.com> Message-ID: <69bd76edaca4b5ce51ea716d249424f16c7929f9.1699896042.git.fweimer@redhat.com> References: <2d447c2aaead261f4449231379c4d1a15bf210a6.1699896042.git.fweimer@redhat.com> X-From-Line: 69bd76edaca4b5ce51ea716d249424f16c7929f9 Mon Sep 17 00:00:00 2001 Date: Mon, 13 Nov 2023 18:21:11 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org This ensures that the test still links with a linker that refuses to create an executable stack marker automatically. Reviewed-by: Adhemerval Zanella --- nptl/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/nptl/Makefile b/nptl/Makefile index 015295e45c..067b01ea8e 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -671,6 +671,7 @@ tst-exec4-ARGS = $(host-test-program-cmd) $(objpfx)tst-execstack-threads.out: $(objpfx)tst-execstack-threads-mod.so LDFLAGS-tst-execstack-threads = -Wl,-z,noexecstack +LDFLAGS-tst-execstack-threads-mod.so = -Wl,-z,execstack CFLAGS-tst-execstack-threads-mod.c += -Wno-trampolines tst-stackguard1-ARGS = --command "$(host-test-program-cmd) --child"