Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5379194iog; Wed, 22 Jun 2022 18:55:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sC69/+0W9y3PWdbORbCLgYCi5IqBys8z1OLsaAc3DTqe9rTqsOIo+K9Qh2+vRaE0y6vlvP X-Received: by 2002:a63:b57:0:b0:40d:2c1b:6043 with SMTP id a23-20020a630b57000000b0040d2c1b6043mr4963154pgl.560.1655949331790; Wed, 22 Jun 2022 18:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655949331; cv=none; d=google.com; s=arc-20160816; b=zYQgBWLq/MuMZu5UZWQRZ490LEy1D7AAjVy/84SXGu/eccLElB3qkObU569wFBc2E1 gcPxuFIY2+vj34MU3Q0/Pvb7aCDOtwFlpTjbCTgcw5pGTtlzBQx0QGhEtsuZZ/ilULsl fQQV3kZJ3aLsaXDL2a9kGuAPysJeP7NXNqwgBPW3+C3N84RfPVpWb6AokmjHWcB1mO2p bKKvnug6SZY7YBDZmMsxyC/2WpaOyozoXkMFfmQJWq7zemmwtDD7KKlkJnflqtmBzE7g ke5Fl58+IEmC/IJXMT6fe71ZN4VS3A+xfsAsLJCbDNdjREZ+Zzdffc88JvWy7VBMoUOs P7SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=03RsEqx6jdSVl3+3mFRIEosvLB73MoV2r49O8aeITqY=; b=hBnvtWptNPHl9oy9prNtcCRdSvjG47oZqnITMMKdqNrehgJZYa6geH9CzX5ForM8+z 324wRKwBp9kkB93RqrPEdwMrAMH4GynQqpHajEeCL/HUrmOYHJGJUlQBHP1feAzNYED3 wRD2x5lkfEZ9k7cQF/xKZhkadE87FU6thkFewTW59sU2XL4YSLGzEdtEiU02NP612SQV oqe09ekpNJO/q/1keZaVsO5MwLI2wEbMw7IeDHTZKO+JEaRHU0Mro0XkucnRNqJol8u7 0xVC3raquzgbedCmIwdc1sMkSmz2NK+0Kyw1uv9ce6HjHYcq/b5Pzlzztu648gum53LH Dg1Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m25-20020a62a219000000b0051054f9373esi25057151pff.165.2022.06.22.18.55.19; Wed, 22 Jun 2022 18:55:31 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377788AbiFWByI (ORCPT + 99 others); Wed, 22 Jun 2022 21:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377636AbiFWBw2 (ORCPT ); Wed, 22 Jun 2022 21:52:28 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B107643AFC; Wed, 22 Jun 2022 18:51:53 -0700 (PDT) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4LT3BY65tHzDsMk; Thu, 23 Jun 2022 09:51:17 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 09:51:51 +0800 Received: from ubuntu1804.huawei.com (10.67.175.36) by dggpemm500013.china.huawei.com (7.185.36.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 09:51:51 +0800 From: Chen Zhongjin To: , , , , , CC: , , , , , , , , , , , , , , Subject: [PATCH v6 29/33] arm64: compat: Move VDSO code to .rodata section Date: Thu, 23 Jun 2022 09:49:13 +0800 Message-ID: <20220623014917.199563-30-chenzhongjin@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220623014917.199563-1-chenzhongjin@huawei.com> References: <20220623014917.199563-1-chenzhongjin@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.36] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 VDSO code should be inside .rodata. Now code in kuser32.S and sigreturn32.S are inside .text section and never executed. Move them to .rodata. Signed-off-by: Chen Zhongjin --- arch/arm64/kernel/kuser32.S | 1 + arch/arm64/kernel/sigreturn32.S | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/kernel/kuser32.S b/arch/arm64/kernel/kuser32.S index 42bd8c0c60e0..692e9d2e31e5 100644 --- a/arch/arm64/kernel/kuser32.S +++ b/arch/arm64/kernel/kuser32.S @@ -15,6 +15,7 @@ #include + .section .rodata .align 5 .globl __kuser_helper_start __kuser_helper_start: diff --git a/arch/arm64/kernel/sigreturn32.S b/arch/arm64/kernel/sigreturn32.S index 475d30d471ac..ccbd4aab4ba4 100644 --- a/arch/arm64/kernel/sigreturn32.S +++ b/arch/arm64/kernel/sigreturn32.S @@ -15,6 +15,7 @@ #include + .section .rodata .globl __aarch32_sigret_code_start __aarch32_sigret_code_start: -- 2.17.1