Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5378651iog; Wed, 22 Jun 2022 18:54:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t/ytGLbGGYoy7Ay7mpaWP7IkJZH5NU1dHTrRHWvfKH0QhVetYMwrO4wfuaIdWVPh1weZD1 X-Received: by 2002:a17:903:20f:b0:158:d86a:f473 with SMTP id r15-20020a170903020f00b00158d86af473mr36738273plh.92.1655949286957; Wed, 22 Jun 2022 18:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655949286; cv=none; d=google.com; s=arc-20160816; b=tAbKwStsBuPMVf8xiMpz0y+BXXLv7t4n1LxubuZohqHv5hoAIzPeLZlS5+9ZavgB1T W/v+/xjlhJypd54vFwiGHGDU+d9pDFScSUJpGVh2cXSSu6QywWgaldWhTVyG7M5AMhN6 CQP6WYf8W5zk2T55Bb5lbXC1GHrOz+wS02Cgd5re0nTwzWLKl3OgSnrZKTuh0ANnXSNj WcodAY8WHQwK6xU4MD77gXHtWjvsLNAd9kkk0E/jxWIXJkBe/9X0u0YRmtxFV4qDQMRl malz1um45n1Swx5f00AZ0GjB/ZHSLyZndifvzBNb/hfbJZvz8LC6Pt4Qvz7XKDS382kZ cPEQ== 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=IzeXRzV2rDsZKVtak+wu6mMLsO3lJZMo7NlGGrB0tUE=; b=fp73E7wjLqIa7NfR1u8qhd096MXYpSEHpKEnPRmbsNFk2XYHujMyeJlM4Hfs3WGjNG lsh2sopMJEpxJ1wpGnXvW7+XXEV/pwonkd3pw2bz+CPAYnAYUyYwmnjqON24WfDLxVsc 7uW5iIVX5m4EKBFyYsc7kmpwB3MIfahJzuecnNbQLYw4nvR9NyA1tWCPQJSWB0ICLFbw rqkmwU/HV28xbeWnYGhkzG/uAbKdiKbUax4E3hrXXrlF1NkyRCvCwBYaaw5H/sqozX+W 39qpYzAobO+PmMWozM9Fo5/LRoZoRLyOxFGJ9q9TrO9zm3KT4o4htOouL6b4cdkIdXaB n26w== 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 n11-20020a1709026a8b00b0015d22cd6f85si20307351plk.586.2022.06.22.18.54.34; Wed, 22 Jun 2022 18:54:46 -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 S1378186AbiFWBxm (ORCPT + 99 others); Wed, 22 Jun 2022 21:53:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237557AbiFWBwW (ORCPT ); Wed, 22 Jun 2022 21:52:22 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B99043AEF; Wed, 22 Jun 2022 18:51:52 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LT39n2rKHzkWjn; Thu, 23 Jun 2022 09:50:37 +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.24; Thu, 23 Jun 2022 09:51:50 +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:50 +0800 From: Chen Zhongjin To: , , , , , CC: , , , , , , , , , , , , , , Subject: [PATCH v6 23/33] arm64: head: Mark constants as data Date: Thu, 23 Jun 2022 09:49:07 +0800 Message-ID: <20220623014917.199563-24-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 Add data annotations to constants part of the image header. Signed-off-by: Julien Thierry Signed-off-by: Chen Zhongjin --- arch/arm64/kernel/head.S | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index 2a66d18091eb..71580eb1fd51 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S @@ -63,10 +63,11 @@ /* * DO NOT MODIFY. Image header expected by Linux boot-loaders. */ - efi_signature_nop // special NOP to identity as PE/COFF executable +SYM_DATA_LOCAL(efi_nop, efi_signature_nop) // special NOP to identity as PE/COFF executable UNWIND_HINT_EMPTY b primary_entry // branch to kernel start, magic - .quad 0 // Image load offset from start of RAM, little-endian +SYM_DATA_LOCAL(_zero_reserved, .quad 0) // Image load offset from start of RAM, little-endian +SYM_DATA_START_LOCAL(_arm64_common_header) le64sym _kernel_size_le // Effective size of kernel image, little-endian le64sym _kernel_flags_le // Informative flags, little-endian .quad 0 // reserved @@ -74,6 +75,7 @@ .quad 0 // reserved .ascii ARM64_IMAGE_MAGIC // Magic number .long .Lpe_header_offset // Offset to the PE header. +SYM_DATA_END(_arm64_common_header) __EFI_PE_HEADER -- 2.17.1