Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5353344rwd; Tue, 23 May 2023 23:59:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72mIcPWn/PyBCSyTHfbKD1ia1JkSDGenfLE+VG0GoLoPZQXux6rblybjm6rsiayksRPFM1 X-Received: by 2002:a05:6a00:190f:b0:644:18fe:91cc with SMTP id y15-20020a056a00190f00b0064418fe91ccmr2146189pfi.12.1684911548453; Tue, 23 May 2023 23:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684911548; cv=none; d=google.com; s=arc-20160816; b=nCpMCEwWnCdpL8qBXJUzStewkfS9CujyvmGwYNVlA6+Rzov1MUW8PwOBjO8TwOn4Qs 1itVzLu6GvAAC7LMjsRoZxdt14Y9STp/IqRJOA4ZFZOUyDCE5XJg9dXvyCnNk+/dsaId k9KD2sXTzoyNeJ5qkBJKKE2i+z6lTlpVoL+4lHN4kxmn2WE0vlDK+FofIgmtO2TViy2I +4oLuo9w5zxxUMRXCDvOVYV+wnzFB15LIMRjDeWygZW08twt0DxZIsWDdXzK9GeN451b CnsFwU2RjIkm/rvMzkVnW9rfvi3FrXoplK+S2Dw04dZQPQcl5CemIeKoxVMaEJ1yc7Yx jLWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=O7MvoMTlgjVoTGmpcZGSFzM35gSTB2MjIjz7+tQPAS0=; b=nRpG5jnF+i2gHhH0o3u1Ht64ckciSM0CeYW4PHU2vJd2CMP0NF/6DyhNGheGKLKTzI mCMpzGlkvTGMzGwmZPXQqrkT/z8BVhpX1JcS9nuxpA5r68hQYk29Ym0+bmdmol37pGjp 5QgJ45gerZSExEOzXYcqOZGUw9CWt7b7cA7m+BCCLmSBHRWYDAUJwnWxZMRzpqmMtAb+ PfFhp90ehC5kstsPAyRxTqGnpCUse+3nRbVC7RZP2Q3LpgdBRWwN08EaLTjO8VO9AWDa zLsTBJUFwUyDjldt2VbHcDIvYbAaBW1F2p/09JMRkXtwd7KhHfAHfxkQzYvLecPBr+Rx RLfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=XKSWBleH; 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 a9-20020aa79709000000b0064d2d8d7c33si1481016pfg.45.2023.05.23.23.58.56; Tue, 23 May 2023 23:59:08 -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; dkim=pass header.i=@weissschuh.net header.s=mail header.b=XKSWBleH; 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 S239027AbjEXGq5 (ORCPT + 99 others); Wed, 24 May 2023 02:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238999AbjEXGpw (ORCPT ); Wed, 24 May 2023 02:45:52 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3BBE5F; Tue, 23 May 2023 23:44:51 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1684910689; bh=ltUWovv/Cloe2VwkyJxIkMFPVm8q3r16lGT1SpqtO9o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XKSWBleHdczxPIHT1qS9qFNggj1aG99TQKokUYEnIsINd+LgZvYZdclj2d7m5lSFI yI+xr4VfqI0GaALYF0Y0eefzepSp+Kp2cx0f+rgQrxcR/15MTOFh68ERVqi/jDoDRM 4Q3WtCwbxMCkk57dcGcQdLgfLKa0bMHipGQfKEpA= Date: Wed, 24 May 2023 08:44:43 +0200 Subject: [PATCH 2/3] selftests/nolibc: allow disabling of stackprotector support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230523-nolibc-stackprotector-gcc9-v1-2-3e4804235d50@weissschuh.net> References: <20230523-nolibc-stackprotector-gcc9-v1-0-3e4804235d50@weissschuh.net> In-Reply-To: <20230523-nolibc-stackprotector-gcc9-v1-0-3e4804235d50@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Zhangjin Wu , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684910688; l=1069; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=ltUWovv/Cloe2VwkyJxIkMFPVm8q3r16lGT1SpqtO9o=; b=nvt1qAl5Y2PbRAMHGV/qN2KRXxo/ezTCPrjm6v9w+nlC3vlHJDXssdjP6Pro9wLL4naPfgOMU WzKGOvag+SjBayWwHR9zL5e6m6jrjiWTnW0iWZRCNiHkdc854PJWblk X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows users to override the autodetected and enabled-by default compiler support for stackprotectors. It can be used with "make CFLAGS_STACKPROTECTOR= nolibc-test". Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 882ba6a33dbb..47c3c89092e4 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -77,10 +77,10 @@ Q=@ endif CFLAGS_s390 = -m64 +CFLAGS_STACKPROTECTOR ?= $(call cc-option,-mstack-protector-guard=global $(call cc-option,-fstack-protector-all)) CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ $(call cc-option,-fno-stack-protector) \ - $(call cc-option,-mstack-protector-guard=global $(call cc-option,-fstack-protector-all)) \ - $(CFLAGS_$(ARCH)) + $(CFLAGS_$(ARCH)) $(CFLAGS_STACKPROTECTOR) LDFLAGS := -s help: -- 2.40.1