From patchwork Thu Sep 22 13:04:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Zhongjin X-Patchwork-Id: 12985095 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB2BFC6FA82 for ; Thu, 22 Sep 2022 13:09:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=s/miBuVlWCXabqPdz3PrU0FOmX2jmsDFqCHFA8UC5qc=; b=Fl24QpXv8c94bH //DLEFwmiPIsLEnz1l9Iy55pDIYWe2A8ljHR0CoM7m9/uEaUrreaNvg3EZXK9V2T1jvqL9PB+tGcm kg2bEuTx+/Nm/mlXEAwTU2yAV+/OyPGp3i4yGImb4rCJ2WxrL8sbMYOMRa12HbG9cGa+kiBAQ6a/e yTYgeDRKPwGEzIfy0D6IdM/NKt86gKGyLIZ/cEk7IeVOg9E2lh+qcAVc5lKrvJlweVtL+o7Hak0ao ThAxBidwIhUeCy9zyTimnsFFrmpDAE5VAeRpWbo4/MfJ+46tajtT64L2BBjFGIS/DADK6mXyfp3df P0sHIVaZz00UwTiMjFfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1obLwa-00FYte-NP; Thu, 22 Sep 2022 13:08:44 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1obLwU-00FYrH-KP for linux-arm-kernel@lists.infradead.org; Thu, 22 Sep 2022 13:08:42 +0000 Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MYFqF54lKzlWfP; Thu, 22 Sep 2022 21:04:25 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 21:08:34 +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.31; Thu, 22 Sep 2022 21:08:34 +0800 From: Chen Zhongjin To: , , CC: , , , , , , , , , Subject: [PATCH -next 0/3] arm64: Mark constants in .S files as data Date: Thu, 22 Sep 2022 21:04:49 +0800 Message-ID: <20220922130452.233323-1-chenzhongjin@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.67.175.36] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220922_060838_855734_6559D58F X-CRM114-Status: UNSURE ( 6.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are some constant numbers insdide .S files which is mixed with text sections. When tools are reading the ELF files they cannot distinguish these constants out of normal instructions. Mark these constants as data symbols by wrapping then with SYM_DATA macro. Chen Zhongjin (3): arm64: efi-header: Mark efi header as data arm64: head: Mark constants as data arm64: crypto: Mark constant as data arch/arm64/crypto/aes-neonbs-core.S | 14 +++++++------- arch/arm64/crypto/poly1305-armv8.pl | 4 ++++ arch/arm64/crypto/polyval-ce-core.S | 7 +++---- arch/arm64/crypto/sha512-armv8.pl | 24 ++++++++++++++---------- arch/arm64/kernel/efi-header.S | 2 ++ arch/arm64/kernel/head.S | 6 ++++-- 6 files changed, 34 insertions(+), 23 deletions(-)