Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3770167rwr; Sat, 29 Apr 2023 14:15:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5GSKM3sBbpiTSudN0tPpoPqllkc1Imx5K7BBHvhDqVGjMNIt2pQwSaVbHJgUc8P6dGVEAh X-Received: by 2002:a17:902:eccf:b0:1a9:465c:6802 with SMTP id a15-20020a170902eccf00b001a9465c6802mr11418337plh.5.1682802915930; Sat, 29 Apr 2023 14:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682802915; cv=none; d=google.com; s=arc-20160816; b=sjh1eThx/7gOyejhOpko6Vvx1Lyq4u/FdMMD9v1YjKLsz3t63WT+vgDlHAsQ4IB+iA ERs/mGebdb/0jmPkT4RGufUN9zPLkeF69tJ7jjabFZrpbk6+vQ6zzkpE2RW9QYTnXyvg ash8x908gJzqLb8Yh/3h+AfUyjKEs38QuXwrJ9tNadn9n1wz/nfl3PlzSdmQMw97JMxZ c33K/VCAwMz4Y9pm9TdO5kb61bYRHr/ufv4L0bmBeXYRJQDxtOALGDqMwXjxmK7Ntl1t Zf4P7iOxKB+GhAPwJAzUPMbCXMlLD2k3vp6F5Q0LQt0rlnJOV0c11sFdLGMMZU9xabgB iP1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=oRyE2bDyLHFOuKU5y1Z6rQcuSYgnNs3Rwoy8UxjyT/I=; b=kaO/M4InN15gTg9Pk+blRJI1LiXqdNVUywhSsJQUd4ix54AKVxeFsUp3t1eonKX0Qc kZQIY5fB1EroAC12eQEg3inNw3uFO5x64c55nn7Ns3AdUy79l135yYMyM8yg53YGeSNo UUArFSpyjfSJwvP7HYlrZAI4i7cN9iyB7sonkDJ2gmkNxn6jwytvEkSdvbABckmyh3uH +i91aLZEDNCKNL+FsS4weNFxmklWPKzDQgTGjyN3xCPBPlAEMpoik3mkfqKRz3h4RjLr dXuHxgSKcoQIsHsGkW42F6OS7FnfGqf/yC3RsPIwZdWvj2SGgFSz6FRJ9OBt/eC15Ubd hh6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=MIWfaxja; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a1709029b8900b001aae90dbcc5si594888plp.459.2023.04.29.14.15.05; Sat, 29 Apr 2023 14:15: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; dkim=pass header.i=@google.com header.s=20221208 header.b=MIWfaxja; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230324AbjD2VGN (ORCPT + 99 others); Sat, 29 Apr 2023 17:06:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbjD2VGM (ORCPT ); Sat, 29 Apr 2023 17:06:12 -0400 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD49119A4 for ; Sat, 29 Apr 2023 14:06:10 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-32ec968434eso753595ab.0 for ; Sat, 29 Apr 2023 14:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682802370; x=1685394370; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oRyE2bDyLHFOuKU5y1Z6rQcuSYgnNs3Rwoy8UxjyT/I=; b=MIWfaxja9qHIaA6Uk46nN8K8I0b8FPlrkOW5abmswIJwhJayvhsNvcUuq8fz7Q6Htg gbEfrj5+2bvk6oUt9flYEfrumL+3XkTLjnsj4um7NBiLw9YZ+pzS3nUSSAZO2YqT9pd7 2MBsw4RlWVT3MedAZ0+4p4IuZ/ao/XTNBTt9y84IP1l6VR9vfonmwWIQZnt1RX7qbiC4 r50C1Tpu93c0O9gsipTEu8d4hHl1IK7PL/P531NYvbxeFhZS6zFF1LMAeTditCCg0cBy xBs8UrEpl9OrKbxiuEfm+4XGcv8z17eh1ebmoyr77drTfEKg8i8DKKu7OELm9V6VuQDa tgRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682802370; x=1685394370; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oRyE2bDyLHFOuKU5y1Z6rQcuSYgnNs3Rwoy8UxjyT/I=; b=dYLPA9aH2KlXOZs3COp/yXC6kVUuCp7kkwUB9AG6aXsY+dUdox27ePSjkV81naUnOo 74689MVlQVspeOY3t/Ck4iiPojT62BEGrybuS+c0Lt5jNzRR9+7+1cGK0/51gwD6HuEF yDQ/CrPtTYFHL46pEO3zs+OwRWZJ9k8Bqa5V43acagR8+XTbseNmxczJgLuM/b3oj7/K dos0csPST44JB7uUMhx64EwJNXI4xi91CPEZyl6C/muYFPHvt0SjnntES4H+yA7l6IBD p6aMJW0Uez8aOjhpBGbm2Yu5HYVfq+yD1uXfaQ+Vui29ox7f8ldkIE48vUZdZLHZopYx IXlw== X-Gm-Message-State: AC+VfDwdYLqM/8NBm8tYsyKx7KUbYCYbUhjzJDWmqQ9/gS+AKZiromGo l699pMXCe2tDCO42tQzSv33QKp/B6MhaiiI64wBpQR3TAFExOfBL9FL18w== X-Received: by 2002:a05:6e02:1bc3:b0:32c:a94e:b4b2 with SMTP id x3-20020a056e021bc300b0032ca94eb4b2mr168370ilv.7.1682802369997; Sat, 29 Apr 2023 14:06:09 -0700 (PDT) MIME-Version: 1.0 References: <20230424102827.58707-1-ukleinek@debian.org> In-Reply-To: <20230424102827.58707-1-ukleinek@debian.org> From: Ian Rogers Date: Sat, 29 Apr 2023 14:05:58 -0700 Message-ID: Subject: Re: [PATCH] tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Arnaldo Carvalho de Melo , Namhyung Kim , linux-kernel@vger.kernel.org, Diederik de Haas Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Mon, Apr 24, 2023 at 3:28=E2=80=AFAM Uwe Kleine-K=C3=B6nig wrote: > > Commit 160be157eaba ("tool lib symbol: Add Makefile/Build") failed to > define _FORTIFY_SOURCE to 2, probabaly this was cut&pasted from other > Makefiles with the same problem. > > Fixes: 160be157eaba ("tool lib symbol: Add Makefile/Build") > Signed-off-by: Uwe Kleine-K=C3=B6nig Acked-by: Ian Rogers Same problem here I think: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/too= ls/lib/api/Makefile#n42 Thanks, Ian > --- > tools/lib/symbol/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/lib/symbol/Makefile b/tools/lib/symbol/Makefile > index 13d43c6f92b4..4a08cc4e19f2 100644 > --- a/tools/lib/symbol/Makefile > +++ b/tools/lib/symbol/Makefile > @@ -39,7 +39,7 @@ endif > endif > > ifeq ($(DEBUG),0) > - CFLAGS +=3D -D_FORTIFY_SOURCE > + CFLAGS +=3D -D_FORTIFY_SOURCE=3D2 > endif > > # Treat warnings as errors unless directed not to > -- > 2.39.2 >