From: "Jan Beulich" Subject: Re: [PATCH] xen: arm: include .text.cold and .text.unlikely in text area Date: Tue, 10 Jun 2014 10:48:53 +0100 Message-ID: <5396F0A502000078000195E7@mail.emea.novell.com> References: <1402324092-28707-1-git-send-email-ian.campbell@citrix.com> <5396E30E020000780001955C@mail.emea.novell.com> <1402391232.29980.9.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1402391232.29980.9.camel@kazak.uk.xensource.com> 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: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 10.06.14 at 11:07, wrote: > On Tue, 2014-06-10 at 09:50 +0100, Jan Beulich wrote: >> >>> On 09.06.14 at 16:28, wrote: >> > Otherwise functions in these sections can end up between .text and .rodata >> > which is after _etext and therefore gets made non-executable. >> > >> > This matches x86 (although it was done there for different reasons). >> > >> > Signed-off-by: Ian Campbell >> > Cc: Jan Beulich >> > --- >> > Jan, any reason why x86 doesn't just use .text.*? >> >> Because we want the .cold and .unlikely all adjacent, rather than >> intermixed with eventual other ones (imagine mixing in a >> hypothetical .text.hot). > > That makes sense. Could we specify .text.* after those as a fallback or > would we rather deal with each new section specifically so we can have a > think about the right location? That's certainly an option - placing them inefficiently is clearly better than placing them wrongly. > I don't suppose there is a linker option to make it barf on > non-explicitly placed sections, is there? That would have turned this > silent (and hard to diagnose) failure into something more explicit. I'm not aware of any such option. Jan