Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp847358rwe; Wed, 31 Aug 2022 12:07:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR7V5BvR3c3wotF7TdKoS1eS6jd0Ri9y138dyanbg2o3XqjEWP9BSUKZSIlfJd3A/nPPEVpd X-Received: by 2002:a63:84c6:0:b0:42b:e461:348a with SMTP id k189-20020a6384c6000000b0042be461348amr15385626pgd.87.1661972820311; Wed, 31 Aug 2022 12:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661972820; cv=none; d=google.com; s=arc-20160816; b=fvcBQ5Z8nG9Fk6bZ2/Eip12eDfRB676eMCG1pZiTrGvSUOp7aCSpjCOrgLWNVTvUb7 qf6mg5+7wJfbA2FyEs3DuNWGuaeWXIV6psmaM46NKcVmr+RoJrpZsf+ve+dyO7+yWPWt o5VXYvwNPN7AQJmOSvHFAVAAmT2fv+I3KMZZw8K+4kJu6r0zWGAojoDJ6X/vzAeCS/l7 msMhj44q0HntnWuzipz/ipE1NBbumno1+C9tSYU1dqjfEG2I5aGRIlovlUO+kKz6D8tg bqMmi5srUhNILnWugKvmUEJpWgY3Aw3/ASAu8Ss7sc3QPHqJ28HLuhN224SXtGZ2mI10 hTgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=nxmpsFmEnqVW7vmZQzr2xRuU6Ch0EkVsaTgU/u2vV4k=; b=dtEhrzK0QVDiCvkjyZqLlnJywf5UyqAHR2jHkSwDuvZG6qVjJVLwXixqj6il5q9HyW 8/b+4nplhdiXuI4oBAKtXavwDTWlwlgYhE5eVDSK3WAH67jsP4I6VsoNQDDP/lIg9OBz 1jUnVGi61v48S7Ldq+5X06CrcxlfD4pLq4bpvgTmu0ul999IiAxGLps74c75t64gm46R M9TBaGHhcBG2QKLQjsyJGQs+flrPkg7nlpggSmhESE2xAEpT4RQZ+YHwgb7bH/X7CdM1 C6Jml5X1qiYYjKz89iJsn0iktp9uR/B6zgIZd/I/qMzJMcRMg69cKUiLzrz/35YqtNNT YLnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SAAFmWya; 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 v4-20020a056a00148400b0052e11b066bcsi16526983pfu.166.2022.08.31.12.06.49; Wed, 31 Aug 2022 12:07:00 -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=20210112 header.b=SAAFmWya; 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 S233092AbiHaSoo (ORCPT + 99 others); Wed, 31 Aug 2022 14:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233020AbiHaSo3 (ORCPT ); Wed, 31 Aug 2022 14:44:29 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 257161090 for ; Wed, 31 Aug 2022 11:44:26 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-31f5960500bso209613897b3.14 for ; Wed, 31 Aug 2022 11:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc; bh=nxmpsFmEnqVW7vmZQzr2xRuU6Ch0EkVsaTgU/u2vV4k=; b=SAAFmWyauBySzjpJrNvt73SE2HPay3Orf8jgDhjx36QAx7OjiDOdYgsm0SfNZdYfwR 1aWZ13i7QRQptij6GuG9iGtF5yNsL2kRXMc/dvOv+5aTsicc+ef1Ql2h5biLg+VJPx0G rmMAQwuOVN9lN15VJGyMBfX+4vBc79LhEGOh+DryEgZCI6vTG2qdzrFp2UzJi1YWMD9a vVxzoMSlkBRJLBl9oBX4X28ujseOHFASxxhznifxHhpBPOECjZcdTeTNVIfpWNZ/Xz1a F2xgmh8MU7SgOqR7WoUtklnxM60uI9cp0b8xB0qwWelT9D1xKvMAqzogZGtG4cA2VV1t OZqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc; bh=nxmpsFmEnqVW7vmZQzr2xRuU6Ch0EkVsaTgU/u2vV4k=; b=fXifwV0N6lqZ5sRxAkm8Pc68bTa8P3nSHmLtaarLeuNXGvdXzjLoSI59VhA9vspXCz qGmnbff9B9lksWtLxHoDYMLjCE8R9/3mncvI2U+he5zPIOmNa7Topz5oATaM51PI9lbA gmn0jjx36rpId4xQWs1l0OK68QA+pozA0xOhRoqZnu6pNOd0IX85u4EwvYAzm2PuNV8Y yWhRF8UlS8QjsD0yz21Y5u2uS8cEdVVpQNUcjuVGE8VSz3636vQkPT6gBC+xHFOinGFv GtwNQ8HPP+DFFNYd9koRETWlncewXSn+h8GxWVrasKvmPs2wStrEhr/2TmsecH3NdR55 SCag== X-Gm-Message-State: ACgBeo1o4zhbKw0ll/UwLSKT9e4VMVhS6lGCIIXo+pAnSYKyCIFjRlGy qLNh9qMg4vBacHIDVqi7LFL9Jydf/8TF6ljk12c= X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:0:100e:712:5f5d:95d5:9a3:d41]) (user=ndesaulniers job=sendgmr) by 2002:a0d:e850:0:b0:33d:c65e:db0f with SMTP id r77-20020a0de850000000b0033dc65edb0fmr19134259ywe.253.1661971465422; Wed, 31 Aug 2022 11:44:25 -0700 (PDT) Date: Wed, 31 Aug 2022 11:44:08 -0700 In-Reply-To: <20220831184408.2778264-1-ndesaulniers@google.com> Mime-Version: 1.0 References: <20220831184408.2778264-1-ndesaulniers@google.com> X-Developer-Key: i=ndesaulniers@google.com; a=ed25519; pk=lvO/pmg+aaCb6dPhyGC1GyOCvPueDrrc8Zeso5CaGKE= X-Developer-Signature: v=1; a=ed25519-sha256; t=1661971448; l=1621; i=ndesaulniers@google.com; s=20211004; h=from:subject; bh=vWDrWFVICt3Ai14ovaPS7sV9hqYwW1jW8tWWfH+heHY=; b=7NUjXNp3Kko38nPRelaw4RlNwQnLJ60Pq2Feeg9ta5r0PFwgmr+eznfGI29OX44l2Ycx4qKFO/UY y+0hS6/tAzQOJuSLTxlLvDIvqPKvb5NZIizBF2kXCnKd1dlp6AQn X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog Message-ID: <20220831184408.2778264-6-ndesaulniers@google.com> Subject: [PATCH v2 5/5] Makefile.debug: set -g unconditional on CONFIG_DEBUG_INFO_SPLIT From: Nick Desaulniers To: Masahiro Yamada Cc: Michal Marek , Nathan Chancellor , Tom Rix , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, x86@kernel.org, Dmitrii Bundin , Fangrui Song , Alexey Alexandrov , Bill Wendling , Greg Thelen , Nick Desaulniers , Andi Kleen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_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 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 Signed-off-by: Nick Desaulniers --- Changes v1 -> v2: * Add reference to 866ced950bcd, cc Andi, in commit message. scripts/Makefile.debug | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/Makefile.debug b/scripts/Makefile.debug index 46e88f0ca998..b6eb532af3cc 100644 --- a/scripts/Makefile.debug +++ b/scripts/Makefile.debug @@ -1,10 +1,8 @@ -DEBUG_CFLAGS := +DEBUG_CFLAGS := -g +KBUILD_AFLAGS += -g ifdef CONFIG_DEBUG_INFO_SPLIT DEBUG_CFLAGS += -gsplit-dwarf -else -DEBUG_CFLAGS += -g -KBUILD_AFLAGS += -g endif ifdef CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT -- 2.37.2.672.g94769d06f0-goog