From: "Jan Beulich" Subject: Re: [PATCH 10/11] move various bits into .init.* sections Date: Wed, 09 Mar 2011 16:35:14 +0000 Message-ID: <4D77BA520200007800035A0F@vpn.id2.novell.com> References: <4D7780FD0200007800035849@vpn.id2.novell.com> <20110309133019.GG28479@whitby.uk.xensource.com> <4D77982402000078000358DD@vpn.id2.novell.com> <1299687558.17339.626.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1299687558.17339.626.camel@zakaz.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: Ian Campbell Cc: Tim Deegan , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 09.03.11 at 17:19, Ian Campbell wrote: > On Wed, 2011-03-09 at 14:09 +0000, Jan Beulich wrote: >> >>> 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 >>=20 >> The (new) rule constructs %.init.o from %.o, prefixing .init to >> various (data) sections. >=20 > So it's equivalent to adding __init everywhere in those files? No - it requires __init/__initdata to be used everywhere in that file (really just a safeguard against accidental additions of non-init stuff), and will then turn compiler generated sections (like the .rodata.* ones to place strings) into .init.* ones. The equivalent (or actually superset) of adding __init/__initdata everywhere in a file is done exclusively in xen/common/libelf/ so far. Jan