From: "Jan Beulich" Subject: Re: [PATCH 10/11] move various bits into .init.* sections Date: Wed, 09 Mar 2011 14:09:24 +0000 Message-ID: <4D77982402000078000358DD@vpn.id2.novell.com> References: <4D7780FD0200007800035849@vpn.id2.novell.com> <20110309133019.GG28479@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20110309133019.GG28479@whitby.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 09.03.11 at 14:30, Tim Deegan wrote: > At 12:30 +0000 on 09 Mar (1299673837), Jan Beulich wrote: >> --- 2011-03-09.orig/xen/arch/x86/Makefile >> +++ 2011-03-09/xen/arch/x86/Makefile >> @@ -16,10 +16,10 @@ obj-y +=3D copy_page.o >> obj-y +=3D compat.o >> obj-y +=3D debug.o >> obj-y +=3D delay.o >> -obj-y +=3D dmi_scan.o >> +obj-bin-y +=3D dmi_scan.init.o >> obj-y +=3D domctl.o >> obj-y +=3D domain.o >> -obj-y +=3D domain_build.o >> +obj-bin-y +=3D domain_build.init.o >> obj-y +=3D e820.o >> obj-y +=3D extable.o >> obj-y +=3D flushtlb.o >=20 > I don't understand this - have you some reason for needing those objects > to be built as binaries? Also I don't see a rule that makes %.init.o > from %.c but I may just have missed some Makefile-fu.=20 The (new) rule constructs %.init.o from %.o, prefixing .init to various (data) sections. I have no need for these to be binary per se, but I do need them to be manageable by objcopy, and as this concerns only objects that have *only* init code (just like libelf, where I looked up how you did your change), I don't think they'd really benefit from LTO. Jan