Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp926197pxb; Tue, 3 Nov 2020 16:55:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyR8DhBg7WxPx1q6jqqw56Z/kecGWdbvazlhlmV/rLu5ORe/ffmme4TQ6TFViahJYd4HRQ4 X-Received: by 2002:a17:906:1fc9:: with SMTP id e9mr15948170ejt.319.1604451341014; Tue, 03 Nov 2020 16:55:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604451341; cv=none; d=google.com; s=arc-20160816; b=r4mxEYBMuWC6t6XFXYPrt7eMB2atVdMwQHP/1PQHsdceT2ss+Dt5wB7NRTf72QDRjw nWqZeYwNUyXVfBDQocgwTMYM7/i30Yo6B2Mc9CSVFuFZZ4TXK5LtQ53q3SLdqPz2nnxl dsqxtOKKjJyWMcjQcDcrcenTW+9QtrHZEURd+Sg1avmoz8UIstdZj83+b7rAI5C0+gfF KRbNCtI+e0IUK7+hbSXrmWAM8QVLBxQrzngtgwyu6badDwvPGgEGeDD3ai6556PrCXLp LHI4Xs0oKr7DcZof4oBjdk2cU+NRn0+7TBeIegXq447u9nivP6v4mwvv4DewdbdCPNqM d25w== 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:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=ozY6qdV80EEdEz3LDLEtJ+2VRilA83Eh+aRjlDLkLJ8=; b=hL5n9Fjvo+tClGCH+0G5E0LRZihQbg5CVVCjwvCcC4Fo9+BWXe0PaX7Q7qqguqhYem HS90aKzSwMTw+gc2COVNF1y/e1RFgCI2DFw4uNc5uN7LMkH9iwSROF1RH0bsryrUgLq2 YCA83HoRN+csB+sLydVJbg+QDsXKBjvn9e8KsGDTSmw4qug55At542tG957TtvaucaO3 Yxui60LvIirgGw+z8aZHrio4p1FNC0twMj3n5GiYHE+/r8TmGgorsjXOhGSjO99UrE78 LOFjpepWwNtg5GO2F9qfvWg/xyc9ECMUyqygoirQm8jN+IcoAAYZ7pAHQizEMdPnwQRp sc4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="bxOTw/FS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr3si438810ejb.40.2020.11.03.16.55.14; Tue, 03 Nov 2020 16:55:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="bxOTw/FS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729113AbgKDAxt (ORCPT + 99 others); Tue, 3 Nov 2020 19:53:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728712AbgKDAxt (ORCPT ); Tue, 3 Nov 2020 19:53:49 -0500 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83701C040203 for ; Tue, 3 Nov 2020 16:53:47 -0800 (PST) Received: by mail-qv1-xf49.google.com with SMTP id d41so11504574qvc.23 for ; Tue, 03 Nov 2020 16:53:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=ozY6qdV80EEdEz3LDLEtJ+2VRilA83Eh+aRjlDLkLJ8=; b=bxOTw/FSCq2/D3ukSPSlo5pkso1+jVH15V1mEAsq4uXXJswR6edUcaUcRdCg93HJk7 7R/I+QkbxRQDRS3SEx+zrKjEBTPZoTze9TQOsp7mnt3DSV4M6MHJ3NwG4E1Wazg6snMy KbO5ENidAogXlfQtZyZlCYSVO7VEn3HvX+avxPTOrkzJOtV/WNs3Z9KS1+lHde9zC1/6 xmQ3sjbGOWToTSx9jl3qRz+y56192GC6d5AU+k4SpWyIy4pCNO6ya5HwjjyqdXg4/eeJ ZZBYCNv9eoOLwrE1IW18kZQmiSpI/0c2FRB/xIWTBy4krv+DPOayj9HJKvesj6xwmJIe QQYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=ozY6qdV80EEdEz3LDLEtJ+2VRilA83Eh+aRjlDLkLJ8=; b=QrNIXvxqTYn1tAs17xuOkMyn/Vb/UnmaYfj+/R5GL+9sgBgQ/RnLNmFq3JlFB7+GQV K481M7UVEIBQxENNueQ51euIu8I4G5A9A37yFzDkPABoZwsw0Yhb4KTQ15ZxzilhBHSx T16o+/rFSO+BESPbpuvSMCcbmqa7Aq3WeD+t7I4kmmk4QBGYJv6uoYwq1l3E7QrswhBS TWUL4oZdQQdlPQsCb/e/UabKEO1LqC197qOxHxPoBk6oXu9vCSMpdzaQanyUarmMfI3G EfpORa3SG5w0vPIG/gPU46YF0icozbboAv777nnvesh6tJ558PNLEEmuMatqwzCztVCA 1OGQ== X-Gm-Message-State: AOAM530VVK0nmg5w+cquE5u39sonASFFRC+pi9f6e69W00opvnGRtAYQ BiQlPzycp1bNZL9QLdkXgNFfR7t3SU78Pyx45mY= Sender: "ndesaulniers via sendgmr" X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:15c:211:202:f693:9fff:fef4:4d25]) (user=ndesaulniers job=sendgmr) by 2002:a05:6214:192d:: with SMTP id es13mr28271108qvb.27.1604451226656; Tue, 03 Nov 2020 16:53:46 -0800 (PST) Date: Tue, 3 Nov 2020 16:53:39 -0800 In-Reply-To: Message-Id: <20201104005343.4192504-1-ndesaulniers@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH v2 0/4] Kbuild: DWARF v5 support From: Nick Desaulniers To: Masahiro Yamada Cc: Jakub Jelinek , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-toolchains@vger.kernel.org, clang-built-linux , Fangrui Song , Nathan Chancellor , Sedat Dilek , Dmitry Golovin , Alistair Delva , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DWARF v5 is the latest standard of the DWARF debug info format. DWARF5 wins significantly in terms of size when mixed with compression (CONFIG_DEBUG_INFO_COMPRESSED). Link: http://www.dwarfstd.org/doc/DWARF5.pdf Patch 1 is a fixup already sent, but necessary for trying to use LLVM_IAS=1 with ToT LLVM. https://lore.kernel.org/stable/20201103012358.168682-1-maskray@google.com/ Patches 2 and 3 are cleanups that lay the ground work and aren't DWARF v5 specific. In particular, I would like to see Patch 2 sent to stable so that Android and CrOS can move to LLVM_IAS=1 ASAP. Patch 4 implements Kconfig and Kbuild support for DWARFv5. Changes from the RFC: * split patch in 3 patch series, include Fangrui's patch, too. * prefer `DWARF vX` format, as per Fangrui. * use spaces between assignment in Makefile as per Masahiro. * simplify setting dwarf-version-y as per Masahiro. * indent `prompt` in Kconfig change as per Masahiro. * remove explicit default in Kconfig as per Masahiro. * add comments to test_dwarf5_support.sh. * change echo in test_dwarf5_support.sh as per Masahiro. * remove -u from test_dwarf5_support.sh as per Masahiro. * add a -gdwarf-5 cc-option check to Kconfig as per Jakub. Fangrui Song (1): x86_64: Change .weak to SYM_FUNC_START_WEAK for arch/x86/lib/mem*_64.S Nick Desaulniers (3): Kbuild: do not emit debug info for assembly with LLVM_IAS=1 Kbuild: make DWARF version a choice Kbuild: implement support for DWARF v5 Makefile | 13 +++++++++---- arch/x86/lib/memcpy_64.S | 4 +--- arch/x86/lib/memmove_64.S | 4 +--- arch/x86/lib/memset_64.S | 4 +--- include/asm-generic/vmlinux.lds.h | 6 +++++- lib/Kconfig.debug | 27 +++++++++++++++++++++++---- scripts/test_dwarf5_support.sh | 9 +++++++++ 7 files changed, 49 insertions(+), 18 deletions(-) create mode 100755 scripts/test_dwarf5_support.sh -- 2.29.1.341.ge80a0c044ae-goog