Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp691149rwd; Wed, 7 Jun 2023 05:48:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6MDPCXkLO+0ZdKADQXU0PP2JMTYaPFSsrCVGZsRCFCacYYYlnkalIXfxzcTMkQs62/+KY9 X-Received: by 2002:a05:6a20:7d88:b0:117:1c52:ba7c with SMTP id v8-20020a056a207d8800b001171c52ba7cmr1418408pzj.6.1686142114262; Wed, 07 Jun 2023 05:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686142114; cv=none; d=google.com; s=arc-20160816; b=CHSTBB6yi4LUsx6lvJweZ5jsejX4dRSbSLzlqskAj+/vUzPi4PEsOR4MbWxGo+jNOM EeclMVtL3H79nnN3qhHww1aK4x93APSvVVtGIXZU9W7JqQhNeo/Xt4lZdZ5dNnkyiTLw k+xvT6e6p0ZDMpbALCYT3u0llyq5KHJwhgS1/p4jlUznyC0GVhaNwHlqIRKwosDp7SQm q4upcrBm3gOr4H7oIFubMHFgKPTMAIUen2NWl8ZZBqqt+tc9xkzl8eT6nK8KVV2WolK1 /iuotF/yTdhm2Av5CvBllzwdMjo2qQpzdOpFBl1XuR0RM5D2POqVDzJ/l+39yKyUPuba qsiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VuhOgaJhxrqHasDXbhLfKtUiM5NjR2UFCmGDk6JRETw=; b=dVIzaA6/tXg6akGhfcE1QMx9nwwCIJpKV5JT+N7wSq2iqMt59zGqZDM5fMI/4TfaOx 6mHkQrWtD0yFsusx8Ohuae7t8Yt4lSxQdyUCvLg46vDKrELkKbJCHU7Qj3p2+IuxtF9t jC/7Gdd4aWImH6P/JukqTXoOKaiicUFHKA3FHlPptkoA2gSd7iI0hgRNU6GiezZA6KFm xPGBD40/5IHbXNyHxnS1iMXuw5cClPtc7srKgGkOoJLCjkydCuQkR0MldD7PZ3tRHs6d uluDSsL9eShCCCJIUv1gIdq5hKdKr8Nz2MW6N8Rsk1TCYBbOsphFAuGDdBA54AmwirzW CZMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YTvigh4q; 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 u14-20020a170902a60e00b001b04a6330a1si8692044plq.170.2023.06.07.05.48.19; Wed, 07 Jun 2023 05:48:34 -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=YTvigh4q; 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 S240877AbjFGM2J (ORCPT + 99 others); Wed, 7 Jun 2023 08:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235218AbjFGM2D (ORCPT ); Wed, 7 Jun 2023 08:28:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A113CE65; Wed, 7 Jun 2023 05:28:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3CA9163706; Wed, 7 Jun 2023 12:28:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2E73C4339E; Wed, 7 Jun 2023 12:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686140881; bh=Qz6crH1/lu7QrUiSsXrIu8DjMRSudtd/6XGjQPwOYPA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YTvigh4q1ri4O4/J+XsDTg1Ew6QeO6/yA8s8DbHCFyT8fv6IC05mYdRNbEZCcIlow co1P7LExNUF8kTW4hIAHJVQmzBf8JYUwrbGWKhX9DKI0b6Cu1JvGrDwcspRJjipoEA gNZE37ntwkIyA3lkQk1WWXIQ3CrOrU5He14h7lGNSmygfVHnZJeE3pYtqGWAP0+6bR S5ap4LlXF98lFx0opGLJ5cQqMOJuQBsuPQM5Qn0WJDW7TMMMdB4lsqcSRMZVjYWV/3 pB6rckGWTacDvd3SeCwHg2IMuSwu0kAqdUus9G1Ak/785jRPu0Q4VCXAQ9P4OK+ttt Wak5XaGqwY1Uw== Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-19e7008a20aso6619682fac.1; Wed, 07 Jun 2023 05:28:01 -0700 (PDT) X-Gm-Message-State: AC+VfDxhq8xRxRoP+Tp8xnPGSX/8QzwHBSvRgTUKCcR25RsrWpCtx6kv ynyg5KvU8dV0FCKlwUurIJqp0aoP+syCJ/Dw5bU= X-Received: by 2002:a05:6870:3844:b0:19f:7312:79f2 with SMTP id z4-20020a056870384400b0019f731279f2mr4179931oal.36.1686140880935; Wed, 07 Jun 2023 05:28:00 -0700 (PDT) MIME-Version: 1.0 References: <20230606181936.bw62oyqswo7jomra@google.com> In-Reply-To: <20230606181936.bw62oyqswo7jomra@google.com> From: Masahiro Yamada Date: Wed, 7 Jun 2023 21:27:24 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts/mksysmap: Ignore __pi_ local arm64 symbols To: =?UTF-8?Q?Pierre=2DCl=C3=A9ment_Tosi?= Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers , Ard Biesheuvel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Wed, Jun 7, 2023 at 3:19=E2=80=AFAM Pierre-Cl=C3=A9ment Tosi wrote: > > Similarly to "__kvm_nvhe_", filter out any local symbol that was > prefixed with "__pi_" (generated when CONFIG_RANDOMIZE_BASE=3Dy) when > compiling System.map and in kallsyms. > > Signed-off-by: Pierre-Cl=C3=A9ment Tosi > --- Applied to linux-kbuild. Thanks. > 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 --=20 Best Regards Masahiro Yamada