Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7497205rwd; Tue, 6 Jun 2023 11:33:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WCvTe9Ki9BZLT0OSuE1lbtSMcI0TwLvjl1HAMelGDnMvnvuDhYTfOeXOTpw5mpSBcl0x3 X-Received: by 2002:a05:6a00:2284:b0:661:4a00:1ea5 with SMTP id f4-20020a056a00228400b006614a001ea5mr1226628pfe.20.1686076383017; Tue, 06 Jun 2023 11:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686076383; cv=none; d=google.com; s=arc-20160816; b=sesmnijtXI6QawLU+h8Yjh9XK///1lKxfTtoW2QINNmq8jBQGfbCObEkHfF3JtTekI w5WPxp5cvcB16K4MEIeEtXY1DNIlePOxdwCVaCn2uezaNcYIsh4YG6Igkx+biRq3CuIB 5IVZLdG4PcKbH+PYGSGZQjUEuEWCzilGuhlgJuzCjDUSm7JP8AFN4w11kD62PCuOydl/ iAATLY1SB+qfsMUbJaIbEXt+wjhnu8zDC0cNECAYRG503akjJ/g5W7Cp2BY1gFIsBDYM NRXx5/eNGKYDexUwIc3RwGjcDrk50VY2PmdkBIZq2UPbw783+vp82LfUj/HE9vW6ZC54 kyZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=HfDJR/t/R8v+kkq6WSypx/pjYRl69eWZm/SAQbjXXU4=; b=XzARO/v2Ip4fhNHaOvbcplvaEYIJ6sAKJzKNJzJA+BzvwMVYahQwJlBRwofXEDxnH9 yJsyHQ1OYy1PW2/3xtvYdRkwLjgb773lkH7kw6kc5bT88Y7CZNGGYpDpLnTJfsIjH2h9 Ge9rwVatJ/n9Weqrop+cMa92mKckH7l9w92+2CyAXsW3Gq/bQ/Tzn3UOrnhRgbXGiIdD 3zu/5zxe8dbGboPwBOm+MeaR6qqQsjB7D8r8LTClCl2lQMrla5v6UcTl5RrIleROFrGc wEpXFs+Xnn57w4RO5IyDWv6PjEpwG+kjg2OofO+ofh2naD0kSWN+y5prODHdMpyFMg3+ /c5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=tCGwhphy; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020aa79692000000b006514fefb82asi3406059pfk.43.2023.06.06.11.32.50; Tue, 06 Jun 2023 11:33:02 -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=@google.com header.s=20221208 header.b=tCGwhphy; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237630AbjFFST5 (ORCPT + 99 others); Tue, 6 Jun 2023 14:19:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238358AbjFFSTt (ORCPT ); Tue, 6 Jun 2023 14:19:49 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F27F170C for ; Tue, 6 Jun 2023 11:19:48 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-977c72b116fso557002966b.3 for ; Tue, 06 Jun 2023 11:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686075587; x=1688667587; h=content-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=HfDJR/t/R8v+kkq6WSypx/pjYRl69eWZm/SAQbjXXU4=; b=tCGwhphy/iL586tvvdr7tBjj5PiLyKE7zGdomHcNIFJcO6bAr+FrY17Ud+Pd+ggpMx Dwv+cE4fUILAMwIOXrbefjafY6rnXvjx0dDmOKShX7qqEyKIp4V4IIcLvldh52lUtF9+ OV1zDLsNzggeAIjnZQgOvfV3C6Xdipe4NuleBY3KJXaAet1f0hokDYksfMFWiDUF6ynG /2oRX4sBem2HJs/vL9J0g/Bgmw6JcqNIZUdcsckTs4KVYQaFjjpv5zUQYDeCdTGGHtD5 RPOa3Xb6z+u27Ao3iurhzrejU1Dziti6vA6t7NQEpLcLQb+Hh1R5dOakR22W7Vunssip BblA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686075587; x=1688667587; h=content-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HfDJR/t/R8v+kkq6WSypx/pjYRl69eWZm/SAQbjXXU4=; b=ZyqtS1Oe7EeLXBTx9TS431xZjTjV9+6ST8vsHtl7ODCelYVxIL48e8CQfuCb2osRZR WxburUZmOlK3BHTymDeCQuvREw4QikJNr78oKARPaTDOlgzm2A0bOlDkl6nfFCIgwcOs z7q8A4N+ULm5m3EYEYBxKtWPx0HBUb/dMCmElv3RFT05S+x3gwO/M2LUKf6VD4aVANvr giNfxirhM2h2MB/mJqzY7WMMzEg4nDl1ii6P17a+nIoOSrS/mSv6SwjI+FVvaZoua92U Y4AlAg7HczK6b4meZtdtOkBXIVboqPll7cMbtVl9gvz0V2RDMRF7zAZblngbEu3dqx3K +dWw== X-Gm-Message-State: AC+VfDyWnJOba+0YvS1zCI7qAlc46lHbfUKFpL5Wc0zTwx10IkevgR0i JrL/R6crBO8OJ9jTKLYLDKPUVB8Pu6gLOvdfTQPH3Q== X-Received: by 2002:a17:907:934b:b0:973:946d:96ba with SMTP id bv11-20020a170907934b00b00973946d96bamr3453149ejc.69.1686075586657; Tue, 06 Jun 2023 11:19:46 -0700 (PDT) Received: from google.com (30.171.91.34.bc.googleusercontent.com. [34.91.171.30]) by smtp.gmail.com with ESMTPSA id rh19-20020a17090720f300b0094edbe5c7ddsm5938856ejb.38.2023.06.06.11.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 11:19:45 -0700 (PDT) Date: Tue, 6 Jun 2023 18:19:36 +0000 From: =?utf-8?Q?Pierre-Cl=C3=A9ment?= Tosi To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Nick Desaulniers , Ard Biesheuvel , ptosi@google.com Subject: [PATCH] scripts/mksysmap: Ignore __pi_ local arm64 symbols Message-ID: <20230606181936.bw62oyqswo7jomra@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,FSL_HELO_FAKE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 Similarly to "__kvm_nvhe_", filter out any local symbol that was prefixed with "__pi_" (generated when CONFIG_RANDOMIZE_BASE=y) when compiling System.map and in kallsyms. Signed-off-by: Pierre-Clément Tosi --- scripts/mksysmap | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/mksysmap b/scripts/mksysmap index cb3b1fff3eee..a7de0f637cc7 100755 --- a/scripts/mksysmap +++ b/scripts/mksysmap @@ -40,6 +40,10 @@ ${NM} -n ${1} | sed >${2} -e " # arm64 EFI stub namespace / __efistub_/d +# arm64 local symbols in PIE namespace +/ __pi_\\$/d +/ __pi_\.L/d + # arm64 local symbols in non-VHE KVM namespace / __kvm_nvhe_\$/d / __kvm_nvhe_\.L/d -- 2.41.0.rc0.172.g3f132b7071-goog -- Pierre