From patchwork Tue Jul 25 09:21:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Woodhouse X-Patchwork-Id: 9861509 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D0829602B1 for ; Tue, 25 Jul 2017 09:24:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC954285F7 for ; Tue, 25 Jul 2017 09:24:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C11A028607; Tue, 25 Jul 2017 09:24:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C15F4285FF for ; Tue, 25 Jul 2017 09:24:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZw2B-0006Mp-5g; Tue, 25 Jul 2017 09:21:43 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZw29-0006Lt-QC for xen-devel@lists.xenproject.org; Tue, 25 Jul 2017 09:21:42 +0000 Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id 1F/A6-01993-4AD07795; Tue, 25 Jul 2017 09:21:40 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJIsWRWlGSWpSXmKPExsUSWsbIpbuYtzz S4MYRUYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNeN++xH2ghcuFV+udTA3MLY7djFycbAIHGOT ePH/NFMXIyeHkMAaRokvrewgNq+AqcTqjZsZQWxhgTCJE7tOs4HYbALaEgd2nGQBsUUElCTur ZrMBDKIWeAQo8Tr40/ABrEIqEp8vNgA1swJNGj2/JnMEAtMJD7t+QM2iFmgXmLz5cNg9RJAQz u7ZwPZHECLBSX+7hAGmSkh0MIo8XbrYeYJjHyzkLTMQiiDCGtKtG7/zQ5ha0ssW/iaGcK2ldh /dSWUbSrx+uhHRghbUWJK90P2BYzsqxjVi1OLylKLdC31kooy0zNKchMzc3QNDUz1clOLixPT U3MSk4r1kvNzNzECg5kBCHYwrm11PsQoycGkJMqbvqssUogvKT+lMiOxOCO+qDQntfgQowwHh 5IErw9PeaSQYFFqempFWmYOMK5g0hIcPEoivJogad7igsTc4sx0iNQpRl2OVxP+f2MSYsnLz0 uVEuf9xQ1UJABSlFGaBzcCFuOXGGWlhHkZgY4S4ilILcrNLEGVf8UozsGoJMxrDrKKJzOvBG7 TK6AjmICOmDOjFOSIkkSElFQDY/CW30eqt7jYGZ2LOTD/u4y8Qlg25/RHxceeJ62bqOvFznrS u7Xv4vOM0xu/lbQVbNPX2jLH4SznxPtiZ2f+eaCv3WlX5tiZofkpx3GKl/RahqdfDxxdz7Wl8 yLbg6fhnzhsJoqn9B4zLJUNb97Ns8Wsw/OvgsubhGcz+BabGuWdcbvAVmCyTImlOCPRUIu5qD gRADKE4h3sAgAA X-Env-Sender: BATV+ea18e7a7947277a7003c+5084+infradead.org+dwmw2@casper.s rs.infradead.org X-Msg-Ref: server-6.tower-206.messagelabs.com!1500974499!101542883!1 X-Originating-IP: [85.118.1.10] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 61857 invoked from network); 25 Jul 2017 09:21:39 -0000 Received: from casper.infradead.org (HELO casper.infradead.org) (85.118.1.10) by server-6.tower-206.messagelabs.com with AES256-GCM-SHA384 encrypted SMTP; 25 Jul 2017 09:21:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Mime-Version:Content-Type:References: In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/nm3OaVerHVzDkEkpzAc5QcSHu4R4cVsLvLWjLK00SA=; b=hIxDIttACELzF0vGWektXisev U8mMDxuXEu0KeJOXqFgTAJtwGjSMrmCp7Ef9MjrTUZE2JKTaPgHjhlNx+yT6x2fY/69N/Kn90eVUF HuH9KqBtPIJ3Sjd6Hbb7wDxkFn/6vkXbTEqbAAptMY3y85JZZfNnIf25AWrn4lC/emqtYL17wl491 q1OOJSEdTaq4EhHpna0oazKOWH2E+A66e6gBvd2Q0+UeDSz9rUp1kUulY66rvfeB7viMhGaBB7SyI 4UEVYg8d+eBWbxKyLl1IrH+vb1u87hocymJzB4eSFjbszCAOVruL+VH4X+l7D3QWR7sgf5cHgb3yF jwQPwzzLA==; Received: from i7.infradead.org ([90.155.92.213]) by casper.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1dZw25-0000n6-JV; Tue, 25 Jul 2017 09:21:37 +0000 Message-ID: <1500974497.20068.13.camel@infradead.org> From: David Woodhouse To: xen-devel@lists.xenproject.org Date: Tue, 25 Jul 2017 10:21:37 +0100 In-Reply-To: <1500564043.4400.15.camel@infradead.org> References: <1500564043.4400.15.camel@infradead.org> X-Mailer: Evolution 3.22.4 (3.22.4-2.fc25) Mime-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Cc: Andrew Cooper , Julien Grall , Stefano Stabellini , Wei Liu , Jan Beulich Subject: [Xen-devel] [PATCH v2] xen/link: Move .data.rel.ro sections into .rodata for final link X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: David Woodhouse This includes stuff like the hypercall tables which we really kind of want to be read-only. And they were going into .data.read-mostly. Signed-off-by: David Woodhouse Reviewed-by: Wei Liu Acked-by: Julien Grall Acked-by: Andrew Cooper --- Fixed typo, collected acks, and this time sent from a properly maintained distribution instead of Ubuntu, so spaces shouldn't get turned into   by the mailer. xen/arch/arm/xen.lds.S | 4 ++-- xen/arch/x86/xen.lds.S | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S index 44bd3bf..2d54f22 100644 --- a/xen/arch/arm/xen.lds.S +++ b/xen/arch/arm/xen.lds.S @@ -52,6 +52,8 @@ SECTIONS __stop_bug_frames_2 = .; *(.rodata) *(.rodata.*) + *(.data.rel.ro) + *(.data.rel.ro.*) #ifdef CONFIG_LOCK_PROFILE . = ALIGN(POINTER_ALIGN); @@ -97,8 +99,6 @@ SECTIONS __stop___pre_ex_table = .; *(.data.read_mostly) - *(.data.rel.ro) - *(.data.rel.ro.*) } :text . = ALIGN(8); diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index 8289a1b..ff08bbe 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -90,6 +90,8 @@ SECTIONS *(.rodata) *(.rodata.*) + *(.data.rel.ro) + *(.data.rel.ro.*) #if defined(BUILD_ID) && defined(EFI) && !defined(BUILD_ID_EFI) /* @@ -224,8 +226,6 @@ SECTIONS __start_schedulers_array = .; *(.data.schedulers) __end_schedulers_array = .; - *(.data.rel.ro) - *(.data.rel.ro.*) } :text .data : { /* Data */