Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp214890rwb; Tue, 25 Jul 2023 14:41:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlFDvZrEl8+3YbxDYSPdWMlEK7Xt3fvkx2QXNGmOb4crXk4rMmsVl+SoiftRjQw7j9NA/AvS X-Received: by 2002:a17:906:51db:b0:99b:4956:e4e3 with SMTP id v27-20020a17090651db00b0099b4956e4e3mr96887ejk.8.1690321312131; Tue, 25 Jul 2023 14:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690321312; cv=none; d=google.com; s=arc-20160816; b=Vk0Cekw/11sja5NryyzQx2tWH2Iv27xjoj20nl1DiS+7xPPk49rFnyZbrWvqKz/mi0 sa5wB6L5rosMbxGjGqzkgpQBLMHnYGnvJVnXjbYRoRMgZoAeoCf30O9smoQpr1vmGWIg KEx85uZUzTKKTqlEZIMa1xgXDtxhT1bM6QBWO5y1rwUTl//rTXKsWLoLy6Y0A/BybYoH wtGWMo8J8r4W9WmvVtLYwfiNWzazzxhSpClL4gK4jTOuPpy1DSAUMPSJ4HCJt8oiJZtz AX77Qw9Smov0OfLygqiSApjxy08fkuPR+RXI5bUpUXeHveNNwXft+XhYrYXpp30goV9k G6gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8/Dp8sJavedeF1H+cStnpTWGJikulRp1Wfk5S0mksBA=; fh=jwC2obHehe6xn6tNuvuNybB2efVluEdaVY7dLgoJ2bw=; b=zN9UsHx2UForUHZBTC1iiggRCS/OcvCanqcaWenzh9bwZQpV6Z7lVYJ0R8B+QpLwqY /JH0vgHei8/IYms9PtMwlLtRUMjCRcWfINysb8tr/Q4c9O3YdVZZsU5EemHI7lkda4L8 QBRn6YQUpLw7/JUiCGK3+h8/VeLpK9JiCGteiN4QqfNNctKkP03vU7ftHGwVC4Mnuvoz AJWogKSt9MWhc0Q8u68wPsok0H9Pvogu8Nv0bEOIdVlSALkJgEcymUwPqommkw5415Fy ydoK1XniNXUi8Jtn0hlRIGFS50teeffgQX1WsUNSu3V4JZ0ryYWa0CWxuUN8kBZMzRD+ S84g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G26TqStO; 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 rk3-20020a170907214300b00992c195ac80si8792960ejb.357.2023.07.25.14.41.27; Tue, 25 Jul 2023 14:41:52 -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=G26TqStO; 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 S230425AbjGYVML (ORCPT + 99 others); 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 Content-Transfer-Encoding: 8bit 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,URIBL_BLOCKED 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 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 -- 2.41.0.487.g6d72f3e995-goog