From: "Jan Beulich" Subject: Re: [PATCH v3 4/5] x86: Port the basic alternative mechanism from Linux to Xen Date: Tue, 03 Jun 2014 12:59:44 +0100 Message-ID: <538DD4D00200007800017539@mail.emea.novell.com> References: <1401440185-11266-1-git-send-email-feng.wu@intel.com> <1401440185-11266-5-git-send-email-feng.wu@intel.com> <538DB8CB02000078000173D7@mail.emea.novell.com> <538DBEA70200007800017422@mail.emea.novell.com> <538DC4D10200007800017488@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Feng Wu Cc: "ian.campbell@citrix.com" , "andrew.cooper3@citrix.com" , "tim@xen.org" , "xen-devel@lists.xen.org" , "keir.xen@gmail.com" , "stefano.stabellini@citrix.com" , "boris.ostrovsky@oracle.com" List-Id: xen-devel@lists.xenproject.org >>> On 03.06.14 at 13:42, wrote: > I am a little curious, from xen.lds.S, we can see both *(.init.data) and > *(.init.rodata) go into section .init.data. > So even we use __initconst and "const" modifier, the data is still not > constant, right? The use of the "const" modifier makes it so the compiler guarantees const-ness. But yes, this isn't being enforced at the processor level. The same compiler issue as observed here prevents the use of __initdata for "const" objects: Some older gcc versions produce "section type conflict" warnings/errors if you try to put both const and non-const data into the same section. Jan