Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3820129rwo; Mon, 24 Jul 2023 17:53:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlErl5HRnAyMuzGYY4Eey8yv90WwzcDq7Pu3Hlb8rJDf0Es9GIF0mamAXEkQqwwVBILdludY X-Received: by 2002:a05:6870:d14d:b0:1b3:eec8:fa90 with SMTP id f13-20020a056870d14d00b001b3eec8fa90mr13242331oac.6.1690246404216; Mon, 24 Jul 2023 17:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690246404; cv=none; d=google.com; s=arc-20160816; b=oowuZ+TSzP1Y2AogmnTw3SvnIvFtfXqFL2j7TrX+1JU6RdwUu0jngOgIzN+53y3ZnC giP14yDH+TzRSFU1xvPBo2qqCRL5Xms2aeLO/pldKjOHWKeY6e2+k/Vv7WAujVffAtv6 HXu7nrIQ4BOpHlNDzDSUHyCFurxUzOHLkd9jUgAQwfLX6Y4RUMmlrzC3huEBAD784GWI hId486SODLMo58MlGfgUP/TkFP563P5c/vZtMd+slZV432Fx/O9PU5ZmbxtorG8PrLrD Gs80tR4UmNykFeuugjBRL6ve83MFHBDh7o/HUrJm6fnpxQIkr0qVLrwJK4ugBFMBvO3R 0y9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DTN2EX+cx6NvLCLEqdvt4iOr6msDN6WCTL2UVhrg0rQ=; fh=JZ8HDAdAXtB2UMy+ic5F1HRxoOg1P2L+WwrvE6W+oIQ=; b=SZP2qm3rj9UueHulw01/qKHT4hGKmcDxuC5PWGIF8INJd+6jWFKgVd8SRsmYaFFhZB om8Cbv9Bu0uVDRz7yNjaDUGRanLcDgptuwzNkP/P0HRzmaLOJypGEaha1UwMFe6eqL0v EDzVBSK3iYbSsC8IIuuJMfzfcNmq9PbpGVd3Jx8f31PsxwSlZIapW08g572liO/uvg58 5oFyxl3uCHv9nQds74OxBEvCub+SHhUP+8rqStCqqY9gS6U8L3ZmsmQDLS64DAWAJ001 Z8hSSImRKTDXE6NGhd3oEpFFU0OlQPygeLAvYXdgCLegBPWcpRWCYia9BRsUo0gnZoVi 6Rig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="AU/aFu+Q"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o15-20020a637e4f000000b00553caa0c899si10224937pgn.771.2023.07.24.17.53.12; Mon, 24 Jul 2023 17:53:24 -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=@kernel.org header.s=k20201202 header.b="AU/aFu+Q"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229735AbjGYAHz (ORCPT + 99 others); Mon, 24 Jul 2023 20:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGYAHy (ORCPT ); Mon, 24 Jul 2023 20:07:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5907E5A for ; Mon, 24 Jul 2023 17:07:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DF36461475 for ; Tue, 25 Jul 2023 00:07:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A379EC433C8; Tue, 25 Jul 2023 00:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690243672; bh=6fFzXgixupyns0zqBY+W9+AYz+IuYhEoIO0CBPqLwwM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AU/aFu+QxDh0Qi98dayhr9GSqJ1rIao4ZFzCl0J0PLB/zIk5/GtgXPSiD4ZGQMkjR 360+7InYgx2NfacD9QhVdmbbb+ab9ejg/tDfkolMeUZz8peo4fE+hukhqel9bV8zky vFLzYfrFTY9irOdbX9zpgKR6jqUHyQaaVoOpPz0GFamzjtOugeTXmBmVTYI+/JsFdL rv/O6e35efXnMwHT6uTy2yaINhS9o6CkqmYB18McXC5rjlDizJyMh+iHNRDtLcKpQD gRl4+TL+2tBNef2XN8iKuPWmT2Pk8ySjqvoPQZImjprSCDYzX0B0QWQeFJeyYAR/eo qPmjwUKbA852A== Date: Mon, 24 Jul 2023 17:07:49 -0700 From: Josh Poimboeuf To: Will Deacon Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, John Stultz Subject: Re: [PATCH 2/2] scripts/faddr2line: Use LLVM addr2line and readelf if LLVM=1 Message-ID: <20230725000749.24qsqlqn5llfan7g@treble> References: <20230724174517.15736-1-will@kernel.org> <20230724174517.15736-3-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230724174517.15736-3-will@kernel.org> X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE 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 On Mon, Jul 24, 2023 at 06:45:17PM +0100, Will Deacon wrote: > GNU utilities cannot necessarily parse objects built by LLVM, which can > result in confusing errors when using 'faddr2line': > > $ CROSS_COMPILE=aarch64-linux-gnu- ./scripts/faddr2line vmlinux do_one_initcall+0xf4/0x260 > aarch64-linux-gnu-addr2line: vmlinux: unknown type [0x13] section `.relr.dyn' > aarch64-linux-gnu-addr2line: DWARF error: invalid or unhandled FORM value: 0x25 > do_one_initcall+0xf4/0x260: > aarch64-linux-gnu-addr2line: vmlinux: unknown type [0x13] section `.relr.dyn' > aarch64-linux-gnu-addr2line: DWARF error: invalid or unhandled FORM value: 0x25 > $x.73 at main.c:? > > Although this can be worked around by setting CROSS_COMPILE to "llvm=-", > it's cleaner to follow the same syntax as the top-level Makefile and > accept LLVM=1 as an indication to use the llvm- tools. > > Cc: Josh Poimboeuf > Cc: John Stultz > Signed-off-by: Will Deacon This one looks good to me, I'll go ahead and queue it. -- Josh