From patchwork Tue Jul 25 21:11:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 13327031 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5CBDEB64DD for ; Tue, 25 Jul 2023 21:12:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229798AbjGYVML (ORCPT ); Tue, 25 Jul 2023 17:12:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjGYVMK (ORCPT ); Tue, 25 Jul 2023 17:12:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E57B19A4; Tue, 25 Jul 2023 14:12:09 -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 07C05618F2; Tue, 25 Jul 2023 21:12:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91A0CC433C8; Tue, 25 Jul 2023 21:12:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690319528; bh=cslsxVWSy/bUXNmzsWv9CS6om0VtnlhZ7mXcJq/v34Q=; h=From:To:Cc:Subject:Date:From; b=G26TqStOU9oo6/HdRhHILX13A0Gvcfg8UxkSKoT2Ulh0Q6PJCojwCDCXaxXiE1X7n WASl0SmlbHt59c1gJaOUu4P93CGHsPhW9Axthqq0yLGsqn+XpUSo2YEZZJ7StLXqwx eRZPJbgWmmX4Dvw9+tR0Lz/gwU0nxVzbejR3C5ffNz5q4Fe6HeAcX+dao4b0CEWK1P oQSr/FfDv5SMmf5gVxkABAimtjPYoR7DFzleM/GEqjMgDy9TxDQkxaj6tUWGwDK2/I oLlNTIzyjFTey4/VFWOVRqRyf/V8fU0zsbdHFy9tWY2n6ojXUkwDJei6v1MqT0134+ aovXd1/CTq9eg== From: Will Deacon To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, Will Deacon , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Josh Poimboeuf , John Stultz , linux-kbuild@vger.kernel.org Subject: [PATCH v2 0/2] Fix 'faddr2line' for LLVM arm64 builds Date: Tue, 25 Jul 2023 22:11:55 +0100 Message-Id: <20230725211157.17031-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Hi folks, This is version two of the patches I sent yesterday attempting to fix 'faddr2line' for LLVM arm64 kernel images. v1: https://lore.kernel.org/r/20230724174517.15736-1-will@kernel.org Changes since v1 include: * Dropped the patch adding support for LLVM=1, since Josh said he'd pick it up. * Reuse the ignored symbol regex from 'mksysmap' instead of ignoring symbols based on their type. Feedback welcome. I've checked that the symbols in System.map for a defconfig arm64 build are the same with and without these changes, but I think I'd still like this to spend time in -next if we go down this route. Cheers, Will Cc: Masahiro Yamada Cc: Nathan Chancellor Cc: Nick Desaulniers Cc: Nicolas Schier Cc: Josh Poimboeuf Cc: John Stultz Cc: linux-kbuild@vger.kernel.org --->8 Will Deacon (2): scripts/mksysmap: Factor out sed ignored symbols expression into script scripts/faddr2line: Constrain readelf output to symbols from System.map scripts/faddr2line | 3 +- scripts/mksysmap | 77 +-------------------------------- scripts/sysmap-ignored-syms.sed | 74 +++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 77 deletions(-) create mode 100644 scripts/sysmap-ignored-syms.sed