Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1732003rwd; Sun, 21 May 2023 05:17:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7W46Y1HwDQyIWMDEgrf1ZMvj0FioQKkfcvg5UvXwUJr+HT1lrVuwkjjF6ybmFPBMttl0xz X-Received: by 2002:a05:6a00:21d5:b0:644:8172:3ea9 with SMTP id t21-20020a056a0021d500b0064481723ea9mr10621384pfj.15.1684671458613; Sun, 21 May 2023 05:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684671458; cv=none; d=google.com; s=arc-20160816; b=YrF+dnL4Gw0a0zSxXhZEm0NfDh+7LLaLAbf2pWISda6sG/SXGujGAsLV0T6T5mmdH/ hbzalukgvVjBk1moAmiaoQoCrR4vw70HBTKVRfabhFEliF//mkjH4vBiqHPOkMHF61zn KKQ/GbyhlKQ3eAJ66w3dQCM46C98hCWRcLmYbwGabazJ2tfmATz8SZvcrjF6bGHpA8Jt N5/31+Yz5xkJF5s0uwnlkNW7Ewajk12pbpUK7zK0n3lEtDtpDwdkPFP0Bj1UhJaWGD1n 2f7KDckzZ5FDB+4viaKXv8ieq3YabO3HPvfuNCTQbQ7PmyzYbTpcelOOciVEMigUmI4J u1Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kSDR1saCszvIEAWaYnubmGn7kTvLtJxsFdeAgM9YdOk=; b=0mhlHSoEM0jqZpTL02ZmkJ1uaIPfbxeYb4dhauusFLJe1GblOkZ5HNZhBjjwpC/3si pTOUumdkobNFrY9/bGs9J+XAVrle2n7nl2kH/BO64TOpCS+T3sfQEwz5oq7xPz8efeZ2 AnbHwfXkY666GDm/snyZWCCm9KU3Rr8QQoKMfkHklbS4xg74arA9AcOc0JHmuSao+u+w fKWk2l0jhV7reBLpW66UWpkJSNNz2qxwBHDH9Hvm5RTukfj3zxa1nlUzUcUl7a5/6rif Sl9UJadkgC46YrK9y8E4HL3IVu0/h5TCplGOQk4cp2TrrC7So6qE5J3HQqeVik8gPlND nuRA== 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 r25-20020aa79639000000b0063b8f3a4d42si1094606pfg.163.2023.05.21.05.17.26; Sun, 21 May 2023 05:17:38 -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 S230298AbjEULuQ (ORCPT + 99 others); Sun, 21 May 2023 07:50:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbjEUKLl (ORCPT ); Sun, 21 May 2023 06:11:41 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4A82919B; Sun, 21 May 2023 03:08:56 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 34LA8IGS029413; Sun, 21 May 2023 12:08:18 +0200 Date: Sun, 21 May 2023 12:08:18 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: "Paul E. McKenney" , Shuah Khan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [PATCH 0/7] tools/nolibc: autodetect stackprotector availability from compiler Message-ID: <20230521100818.GA29408@1wt.eu> References: <20230521-nolibc-automatic-stack-protector-v1-0-dad6c80c51c1@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230521-nolibc-automatic-stack-protector-v1-0-dad6c80c51c1@weissschuh.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 Hi Thomas, On Sun, May 21, 2023 at 11:36:28AM +0200, Thomas Wei?schuh wrote: > As suggested by Willy it is possible to detect the availability of > stackprotector via preprocessor defines. > Make use of that to simplify the code and interface of nolibc. I have just had a quick glance over it and not tested it yet, but overall I really like it, thank you! I'll try to give you some feedback today (or simply merge it). Willy