This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] [PATCH 10/11] move various bits into .init.* sections

To: "Tim Deegan" <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 10/11] move various bits into .init.* sections
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Wed, 09 Mar 2011 14:09:24 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 09 Mar 2011 06:09:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110309133019.GG28479@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4D7780FD0200007800035849@xxxxxxxxxxxxxxxxxx> <20110309133019.GG28479@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> On 09.03.11 at 14:30, Tim Deegan <Tim.Deegan@xxxxxxxxxx> 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 += copy_page.o
>>  obj-y += compat.o
>>  obj-y += debug.o
>>  obj-y += delay.o
>> -obj-y += dmi_scan.o
>> +obj-bin-y += dmi_scan.init.o
>>  obj-y += domctl.o
>>  obj-y += domain.o
>> -obj-y += domain_build.o
>> +obj-bin-y += domain_build.init.o
>>  obj-y += e820.o
>>  obj-y += extable.o
>>  obj-y += flushtlb.o
> 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. 

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.


Xen-devel mailing list