Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp825731rwb; Mon, 26 Sep 2022 06:23:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6z7dXE0XoqTLfuxvDNyRJftf0NPq0AlcBpnAa0AX+Q69MhOS6/ZPSsevWG9E0mM/vC0AsF X-Received: by 2002:a17:906:9c83:b0:779:c14c:55e4 with SMTP id fj3-20020a1709069c8300b00779c14c55e4mr17813603ejc.619.1664198623936; Mon, 26 Sep 2022 06:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664198623; cv=none; d=google.com; s=arc-20160816; b=BqlOY1YGhNDKGc9YcQ8XrX6Vh9e8aUXMNiYHXVedfcI9fGjLcy9SSWFg8FFHZjTzwg YobpiaZxxTna0KerSirh8N8R/UXSO1+KpYSAjMxwgaoGorG2aV4uCUS9t9NCPndCbmgs scfuJ5U83hi3r6ArN4TDvDRw6j7oxJJGIsfQNHo1cby/x8Q+6+Tv84WgJX2hJy+Q1orT 8jaeIOW/Xn+fJbjiw3ZKGlgY0wsJu90fm5Czw4Nmj2UOKNP0HH9rkEmkMCczof8pkkQn 2dJnMDSwTG+XuDHYpamNz/ZDN6BiT2UKCcZZFhgLTLGJoOWHMC2Vg/moSVlPBmo/+UfS 2Acg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6n/29aUSS0SYFabuTKvVScONRzoZAJxZfNpJTXUUS/8=; b=bH4TWIGvsQqwa4LDTQFg29VYadMXadyK16HFebzTmVa391P9SCzBfjUc5dzslOI8h0 0N+PHykpaq+8j9xrYCAbXNxpy3o/1Uy2Lv9RibzpHfwy9VIBNyqzXl6LbTC1GVijJHOg LkYofgsYXZ+luZATmt/170u2wq0bUwLDf20OboE2WAGHIHVHzilrRuuLX2/G93jpZzRM LfvNG+D1phtQNX+ngNowtcEUQoVAKblhBTDcQnQSNfJPCmrlcwAEtRwavF3+HfzoXaqm n7fFM5/N+mKI3bJmr4WmSgsvmd8hYbCZSfJSbO+9XZW0x3tokiev5yh/B8psL5gfpA0U +8KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xTcFDF9R; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa34-20020a17090786a200b007417e9a2c71si16071126ejc.352.2022.09.26.06.23.18; Mon, 26 Sep 2022 06:23:43 -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=@linuxfoundation.org header.s=korg header.b=xTcFDF9R; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239047AbiIZMB4 (ORCPT + 99 others); Mon, 26 Sep 2022 08:01:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239251AbiIZL6h (ORCPT ); Mon, 26 Sep 2022 07:58:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 895E679A4F; Mon, 26 Sep 2022 03:52:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3823460A1E; Mon, 26 Sep 2022 10:51:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3968EC433D6; Mon, 26 Sep 2022 10:51:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664189468; bh=AVRA1ujzvsdAyqlIxi/VLa//CtA1aWEcdrh9tMdOrcw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xTcFDF9RCBSrzRsoY0Icsa5FostC3uLmDTq3qbk+Hmgp/czUDeqKT2jGaFuLq1fTB FWfyO3bgXJgoRKYI446ANMdEKdTzbsmkv6Ra9QUZDB3SBa3giO4PY74hZXB+KbyN6X 59ausWuBf+Te/xcKaXJBwAWu9NzdPIGmrNxiUW08= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andi Kleen , Dmitrii Bundin , Fangrui Song , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Sasha Levin Subject: [PATCH 5.19 197/207] Makefile.debug: set -g unconditional on CONFIG_DEBUG_INFO_SPLIT Date: Mon, 26 Sep 2022 12:13:06 +0200 Message-Id: <20220926100815.415112543@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100806.522017616@linuxfoundation.org> References: <20220926100806.522017616@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Nick Desaulniers [ Upstream commit 61f2b7c7497ba96cdde5bbaeb9e07f4c48f41f97 ] Dmitrii, Fangrui, and Mashahiro note: Before GCC 11 and Clang 12 -gsplit-dwarf implicitly uses -g2. Fix CONFIG_DEBUG_INFO_SPLIT for gcc-11+ & clang-12+ which now need -g specified in order for -gsplit-dwarf to work at all. -gsplit-dwarf has been mutually exclusive with -g since support for CONFIG_DEBUG_INFO_SPLIT was introduced in commit 866ced950bcd ("kbuild: Support split debug info v4") I don't think it ever needed to be. Link: https://lore.kernel.org/lkml/20220815013317.26121-1-dmitrii.bundin.a@gmail.com/ Link: https://lore.kernel.org/lkml/CAK7LNARPAmsJD5XKAw7m_X2g7Fi-CAAsWDQiP7+ANBjkg7R7ng@mail.gmail.com/ Link: https://reviews.llvm.org/D80391 Cc: Andi Kleen Reported-by: Dmitrii Bundin Reported-by: Fangrui Song Reported-by: Masahiro Yamada Suggested-by: Dmitrii Bundin Reviewed-by: Nathan Chancellor Signed-off-by: Nick Desaulniers Signed-off-by: Masahiro Yamada Stable-dep-of: 32ef9e5054ec ("Makefile.debug: re-enable debug info for .S files") Signed-off-by: Sasha Levin --- scripts/Makefile.debug | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/Makefile.debug b/scripts/Makefile.debug index 9f39b0130551..26d6a9d97a20 100644 --- a/scripts/Makefile.debug +++ b/scripts/Makefile.debug @@ -1,9 +1,7 @@ -DEBUG_CFLAGS := +DEBUG_CFLAGS := -g ifdef CONFIG_DEBUG_INFO_SPLIT DEBUG_CFLAGS += -gsplit-dwarf -else -DEBUG_CFLAGS += -g endif ifndef CONFIG_AS_IS_LLVM -- 2.35.1