Received: by 2002:ac8:4602:0:b0:405:464a:c27a with SMTP id p2csp2529404qtn; Tue, 25 Jul 2023 11:20:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlEUwbOw+4L8Al94FAKeDo8Nc1O90qeqy3968LnxpHGWeJYFdsSlNge8lGtjWB65dnwMzCXZ X-Received: by 2002:a05:6a00:2d14:b0:682:b6c8:2eb with SMTP id fa20-20020a056a002d1400b00682b6c802ebmr63345pfb.1.1690309225769; Tue, 25 Jul 2023 11:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690309225; cv=none; d=google.com; s=arc-20160816; b=WfCDAPdqy51kQpZ/6y0P+f3+3Y5ar34ZsxRcUdvSosYhdBm2b1hmaxTJ7tSnETLy0v iIOc70WHTzMqOeMrQysK4HsZShzI0TPqN1k8Azd4+yOJ7BKls6ojeJoVxaCciw0Xqubd pUgiPPLx/tKro9xxyFIj9Xi0HqtoKnWvhJ82d6cwsQ9Q+mfN0HlICS1/vPAzSpv710cA 4eJ7AM6bCOXbgqOu88NtGOmHj6ZAjpBfaufNNKN7QhP+/e2nUWQ2ZhNW+VhRyE/B42Mc sf+nJMfm64OeqRhF6bPCCE6PBgLLWZDdy6f0fV6Utc+fxgUAobfpN3SPxzYPsxU4mqqq f4fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wwSVmtil6+0/0nua0XU0cm7ZCV3D7Tb2q8XxwDUH+O4=; fh=BiFJZdgLvOwdfW4iZgCUIOeRn10zpoTaaY/e464I5R4=; b=cS5Ha2UEXR+uul4wnF35vMZz9Rwkm5LuPU0cKtoCrgBDeh4jJyv37iVqG9Gcw3OstN tlA2JVQV4N1bhwMXZmwXShtGnnmuheMgE+T0jpIYKa6DR8GrONHqYu7yH/5LT2ARfBwz 0S5bXkr2BqGqvZ21VNDjA8v3eudyiIWppNxUQof9gmFvXiEjKhxT8VU0zeC5Kpz+3NTv 46xNt2OiKdT93vN7IMA/ywbyWR7oYH/V9+B0AAJjw1vLYn7hO52miN+Lp71Nvmd9g+Ox U7KScWOMi3U9HJ2+SIfmiNRaJloa9Atu6LTF+nQq91TuDfA1E31RCCBwHYwQCDlasa73 b57g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wrqq2gxg; 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 w5-20020a056a0014c500b0064d3e917a90si12602263pfu.180.2023.07.25.11.20.13; Tue, 25 Jul 2023 11:20:25 -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=Wrqq2gxg; 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 S231320AbjGYRVb (ORCPT + 99 others); Tue, 25 Jul 2023 13:21:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjGYRVa (ORCPT ); Tue, 25 Jul 2023 13:21:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF7619A0 for ; Tue, 25 Jul 2023 10:21:29 -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 4F58D6182C for ; Tue, 25 Jul 2023 17:21:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD69FC433C9; Tue, 25 Jul 2023 17:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690305688; bh=IxcL/QYAvE9rRWrO/NhYhq0czXDdJwuEwJ+g0ud+/Jw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wrqq2gxg6pLLbwWpt8986MbxeNC3nGuc49p6zJ9RIGmn8366d6jMUs221V1TIP6ln eKXbUz/uyccHlXIQma4gibyqGYWPoB2FdHV55DWEabzrn34ginVw+hffZpgNacjX1u ywxXSPyy4TG4VH/FPJuZqirOFZ46FNSxaPJPN88gHpzp5hwE1HtclsyO9lJx1Xqc5P QRDYPsyDGXN4KjXoAfQerbV8ZtxlYDBS1NDLTt50endz3eQyedKyd/p1dzgSzaQQaB M4oKVnSUQzgObr6rTqFy1z+C8jthaIG1s1bpamhjc/3/l/LVPXnhdLuqThkyyx1hWB 0qMSyamumC2qA== Date: Tue, 25 Jul 2023 18:21:24 +0100 From: Will Deacon To: Josh Poimboeuf 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: <20230725172122.GB16719@willie-the-truck> References: <20230724174517.15736-1-will@kernel.org> <20230724174517.15736-3-will@kernel.org> <20230725000749.24qsqlqn5llfan7g@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230725000749.24qsqlqn5llfan7g@treble> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 05:07:49PM -0700, Josh Poimboeuf wrote: > 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. Thanks, Josh! Will