From: "Jan Beulich" Subject: Re: [PATCH 3/5] x86/link: Reduce the number of sections created Date: Fri, 05 Jun 2015 17:22:03 +0100 Message-ID: <5571E8CB02000078000818C3@mail.emea.novell.com> References: <1433511082-20472-1-git-send-email-andrew.cooper3@citrix.com> <1433511082-20472-4-git-send-email-andrew.cooper3@citrix.com> <5571DE7C02000078000817E4@mail.emea.novell.com> <5571CA2C.7050803@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5571CA2C.7050803@citrix.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: Andrew Cooper Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 05.06.15 at 18:11, wrote: > On 05/06/15 16:38, Jan Beulich wrote: >>>>> On 05.06.15 at 15:31, wrote: >>> There is no need for top level sections for each of these, so they are >>> subsumed into more-generic sections. >>> >>> .data.read_mostly and .lockprofile.data are moved to .data >>> >>> .init.setup, .initcall.init, .xsm_initcall.init are moved to .init.data >>> >>> This will simplify the later adjustments to use superpages. >> I'm curious, as I wouldn't expect the section count to matter there >> at all. Generally, especially when having to disassemble a xen-syms >> I find it quite useful if e.g. not all data is lumped together into one >> big .data section. > > With hindsight since writing, I think I can solve the conceptual problem > I was having with extra commenting in the linker script. > > Originally I attempting to coalesce all sections which would have > identical superpage permissions, but this isn't exclusive with having > these sections separately. Good. I'll put this patch at the side then for the moment. > Any thoughts about the .reloc section, at least moving it into it to > between __init_begin and __init_end so it gets reclaimed on boot? .reloc sits after _end (as it's of interest to only the EFI boot loader code), and hence should already be getting reclaimed. Jan