Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp664523rwl; Sat, 25 Mar 2023 08:47:15 -0700 (PDT) X-Google-Smtp-Source: AK7set+9A9PRwBWJmmMcVB81379TPbCXHGJTWOFrrShU0Puz+7Al+E5xG4rtqs3o6nM37t0gVYC6 X-Received: by 2002:a05:6a20:4f24:b0:d6:a0a1:6c6c with SMTP id gi36-20020a056a204f2400b000d6a0a16c6cmr5298499pzb.8.1679759235408; Sat, 25 Mar 2023 08:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679759235; cv=none; d=google.com; s=arc-20160816; b=mHhxZOEA9CZwuWO/BLiA+zSxmzKLdCep5nlfXTK7y3HO9xU+rfgAKi2WvzeAzqJpSl 5rYD7/EJJKJWtPD2gACh0PzFXJQjw1GBPstHit6+vm9NUTYe/drfy8HbXFH1Xt9lHC7/ PjewI5MKJ3Nsi7lm60+uVGWvqSnZm4i7H3jVr4Bly2qOiPYCVqC8Bvb44ESiKhbDtgNM B0G8gLYOAObnx3sMxS8K+tVx4crPKzp6JONSs3Qwn+ohfwT3XNHrg01gyfVPkh9GUZj1 FCWbMuo5pdeCfyO0zDXDijZF3qKYjGDesO0qwHw1foK0dIv/5t1BvU5gIPqCa233J1Os SIcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=blKf22MDBdIqSf+hTQlPUbbsRe1tdZ+1TZXmZX1szFc=; b=E/wdNxx1DlLJUs3n+XNiOYv5PDiRxB7hFl5YujAVSq5oQpUbZGZ3ZY4Y0aK1FopVi2 Gz25f8xXCIMNnUusKgK+9/VNFNYlBrQROmbyCbmL42X52hhGWHZqOzjR+B6SvknvK53K Eanc5xlv/wiANWxiqM9TC+bou0wzTR+pi2JSYfMaCbGA0juxhsmWy/JWlDX+U1EZiU4E EW8k0mlYIp+UxO4PVo4RO1ewnFE0NE6hHnUoPW5PqGjm+JAj6i1GLE8SnytXQFv1bNHq c2xtYw7pm2dalNLKvlJABZj2ixdPYiD5qgw82mXi+W2ryJake6/XOKlVnb34U2HSLEp6 1lSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a625403000000b0062b90348402si3090861pfb.106.2023.03.25.08.47.04; Sat, 25 Mar 2023 08:47:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231477AbjCYPpx (ORCPT + 99 others); Sat, 25 Mar 2023 11:45:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbjCYPps (ORCPT ); Sat, 25 Mar 2023 11:45:48 -0400 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 814C312079 for ; Sat, 25 Mar 2023 08:45:46 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 32PFjQRv008050; Sat, 25 Mar 2023 16:45:26 +0100 From: Willy Tarreau To: "Paul E. McKenney" Cc: linux@weissschuh.net, linux-kernel@vger.kernel.org, Willy Tarreau Subject: [PATCH 5/8] tools/nolibc: tests: fold in no-stack-protector cflags Date: Sat, 25 Mar 2023 16:45:13 +0100 Message-Id: <20230325154516.7995-6-w@1wt.eu> X-Mailer: git-send-email 2.17.5 In-Reply-To: <20230325154516.7995-1-w@1wt.eu> References: <20230325154516.7995-1-w@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Weißschuh For the cflags to enable stack protectors to work properly they need to be specified after -fno-stack-protector. To do this fold all cflags into a single variable and move -fno-stack-protector before the arch-specific cflags and another one specific to stack protectors since we don't want to enable them on all archs. Signed-off-by: Thomas Weißschuh Signed-off-by: Willy Tarreau --- tools/testing/selftests/nolibc/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index c99bbcda7495..4469dcb0c9d7 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -77,8 +77,9 @@ Q=@ endif CFLAGS_s390 = -m64 -CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables $(CFLAGS_$(ARCH)) -CFLAGS += $(call cc-option,-fno-stack-protector) +CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables \ + $(call cc-option,-fno-stack-protector) \ + $(CFLAGS_STKP_$(ARCH)) $(CFLAGS_$(ARCH)) LDFLAGS := -s help: -- 2.17.5