From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96AA4C2D0A3 for ; Wed, 4 Nov 2020 00:53:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5EE0D223C7 for ; Wed, 4 Nov 2020 00:53:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bxOTw/FS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729557AbgKDAxt (ORCPT ); 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= X-Google-Smtp-Source: ABdhPJzFeJPtArXndiS7fYN24JqXcFlvglHjq/P0AetsiQAVxPd1F4kWgNqWsByTQs0Jf2p1lt35T7HKyHCxHvm7lU0= 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