Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp641970rwe; Fri, 26 Aug 2022 11:21:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6tH+/A78NoGT/LSpnJKUpKivMoat5H8Kz54vANwsLap9IVUv6VQuhvzhjcm/4y+DXX9R4v X-Received: by 2002:a17:907:6d1a:b0:73d:95a5:1170 with SMTP id sa26-20020a1709076d1a00b0073d95a51170mr6286764ejc.163.1661538118518; Fri, 26 Aug 2022 11:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661538118; cv=none; d=google.com; s=arc-20160816; b=teXJMXlv+fTWemGAj47T4LKC40QyI7EycNrOVdwm1hC19un9WDs3ta3RMG99/Mp/f+ WBlpoHbmeAQogPu2/7XVr2LsciY7pz6PZhLrfXW8XfkRq75OPZcQFIDMbLvVA+N/ao4Z fraPKzJSguHRe0NUxbP7wdKKPT4KFvP0XlNQoejBts9Xo1xOvc5zxa3t4kWSCPG8dBtW V4K4h4aoFfCqgWnM4s0+GJ794V81wLikDTJXQRht8fGIwDUiFgyauvk5q4Twxae2aB78 R/D7vKBBBjFiPEnzUevmc4ZDV9vYYh/Qs09ltxcyV0dqvvhCyOdhA6+fz723Kxwo2QXX I51g== 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=CWU/c+Z/T3afmWH8jUSRUPrlGa0DK6zNkVSVmthE7JY=; b=JTGSY0C5/5f8JFnlt/7niSDRJ2mNcGklC8mXeZLsdVFdpFwsB2vwcWnBmcNMpzdUNR 4OUBVLmn5trwXLx/N6p7ZEg1S+gzwhQeDoWWO/zrZNWbJ7DiSU1Pycek0ZA9Hi5DikXv L/wPVF+Tp71rIdrIyUZj2jTkdZS1OxX6dBXIAoJ970Ap/lsVOsta4UB8ZXEky7jUSn2i vIPsE4FUSWQWRRtFbVDRX80Uo4uELykj6dnv1h8H3Y+9HH9P1Niu5Pnxxr7iwRXqRWVM 6KVHDie5m64/C8+CS33+zIqJZkPTpR7OqQyx7uLzxRrzf/ujqTTN0ztnE3OjUkgO7Jt+ r3pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=J+AQGYjS; 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 b3-20020aa7c903000000b00445d0be02e7si1483987edt.624.2022.08.26.11.21.33; Fri, 26 Aug 2022 11:21:58 -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=J+AQGYjS; 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 S1345011AbiHZSLM (ORCPT + 99 others); Fri, 26 Aug 2022 14:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344986AbiHZSK5 (ORCPT ); Fri, 26 Aug 2022 14:10:57 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA7B8BD0BE for ; Fri, 26 Aug 2022 11:10:56 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-33dc888dc62so37115857b3.4 for ; Fri, 26 Aug 2022 11:10:55 -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=CWU/c+Z/T3afmWH8jUSRUPrlGa0DK6zNkVSVmthE7JY=; b=J+AQGYjSJRFoIHL2qT5xdAZvDrv7rB5xy/XhHbqmf4gaE97fgjZ/gsV7Bj3BJxJ6C+ FPRauz+dGA3SM+kwveIWXCZxJ7Lo09AWQQ48FIY0hXIPvqLTUVr2mNyYvf0+hQLa5dRB p8jEAl2BGy5VXM7O9Hc7ChpszUItzykwB158shIdBODNy334KmOa7Wmpm6E3iQQ83TJt 32XwyG0fmLqJ039OynjBFyJqv8N2DKehM8g7IugjxRi7bq5yo9SZ8Eas2ju1LuPB7ou7 0OJ42v4NsHKPhivZjHIYd0OnMbrCqPgaGPj8gsCuamCPEeSNl4fyigNCj8s3DLHyhH42 ztVA== 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=CWU/c+Z/T3afmWH8jUSRUPrlGa0DK6zNkVSVmthE7JY=; b=kefJ2Hi2I9IMF/ssgGz/wbwpN7aClm/7T1S9JwHUsrRc2iZwyAHvhRjhggu3LJE3ly khwE/tcKEUfdIngc3A3cGU5CzCmCjD9X/EAjTiufcnk3gyUtUNRTncxk+mNPe82LPAHX 3t9hss0Phi8CvuIORbM/sXLiY13lR94T7dDPUNePy2rF3ryK24PXzhNMXpXS6oWya7xm h69skwUH1lbv0OvGhd5h81LjnjmH/WLwuDrtTrKJkxe+jRKk+xW1M5t5Ecyu+X2gsqfb RfnpvHwKd2xyFQeH2xxe2NWeaSUvGVN6590BCmR/sl+q0i2SzD6wz7eDMXU5NVHR7B44 eG4A== X-Gm-Message-State: ACgBeo3aTozI4o6ryYTSiEH/w0BIIAgDp6i6O07Jst3A4DQfphpvvDAV 0hlKfP5Y1vfFs0/POOnXwp12NGq3l/gHf9Zd/yc= X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:0:100e:712:8d7b:b933:5438:2a88]) (user=ndesaulniers job=sendgmr) by 2002:a25:8e84:0:b0:696:466c:baa with SMTP id q4-20020a258e84000000b00696466c0baamr798614ybl.604.1661537455239; Fri, 26 Aug 2022 11:10:55 -0700 (PDT) Date: Fri, 26 Aug 2022 11:10:35 -0700 In-Reply-To: <20220826181035.859042-1-ndesaulniers@google.com> Mime-Version: 1.0 References: <20220826181035.859042-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=1661537435; l=1289; i=ndesaulniers@google.com; s=20211004; h=from:subject; bh=KFmDrL6BvTknKQovEEq6T3GFbpZs3ibjX3HcMW2RbEw=; b=HAVmPHDoSpY2S9bAFO1KTHzp0jMYkmspk0Y0zWNA/klCy1NkTBTvFdbFEPvTjqH5HFwy7nCPzrDJ 2mGy2RsICFikIgnIL9rPA36Q4SDd51mgrcFdoNpQ/CPxtlHcT01h X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog Message-ID: <20220826181035.859042-4-ndesaulniers@google.com> Subject: [PATCH 3/3] 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 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. 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 Reported-by: Dmitrii Bundin Reported-by: Fangrui Song Reported-by: Masahiro Yamada Suggested-by: Dmitrii Bundin Signed-off-by: Nick Desaulniers --- scripts/Makefile.debug | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/Makefile.debug b/scripts/Makefile.debug index a7a6da7f6e7d..0f9912f7bd4c 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