WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH] libxc: Use .opic to build xenctrl_osdep_ENOSYS.s

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] libxc: Use .opic to build xenctrl_osdep_ENOSYS.so
From: Keir Fraser <keir@xxxxxxx>
Date: Fri, 24 Dec 2010 10:16:13 +0000
Cc:
Delivery-date: Fri, 24 Dec 2010 02:16:53 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:user-agent:date :subject:from:to:message-id:thread-topic:thread-index:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=BH3Fi7mNrgGPKwnTx4IsUEPhqjEPwoKz1Xv6Bd3pxHA=; b=JfRWXhOoEt3UVR1zlbPwmUBRqXfISXGYgQ1n1+iao0TAzyuP32kCzZYClYSyRxbmQL 0RKo4q5lN9bM6+ag+UXBW0LBHWDEVnKCT3pCi+2TtgNWA812wCVgm3tuyAL9Z6dPN4Cc ySmiTl7O8VoY37kedNdnbWmsmK3QqN7Tt+F1E=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=HDU6ibCRoFqm4bX5nkMWSpyi/kYCNPxtmv+WD/VrpXGzw9FvN0c/5wad34eSmvCVEy 9fEagWhJUEsn5Zt/q5DbTMAI7QTcUb6pp03AG/tacA4GL92Bw2dZoODhcWK8VsGUFhrE qaooiC+gWgYR7ON8UqrPKf6KNh0ReQvq+iV5Y=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1293184990.22419.152.camel@xxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcujU5eGH1O9fV+zLk2bTD0u69qcqg==
Thread-topic: [PATCH] libxc: Use .opic to build xenctrl_osdep_ENOSYS.so
User-agent: Microsoft-Entourage/12.27.0.100910
Will do.

 K.


On 24/12/2010 10:03, "Ian Campbell" <Ian.Campbell@xxxxxxxxxxxxx> wrote:

> Hi Keir,
> 
> I'm not sure if IanJ is around today, could you take this 64 bit build
> fix in his absence since it's blocking testing.
> 
> Ta!
> 
> Ian.
> 
> On Fri, 2010-12-24 at 09:27 +0000, Ian Campbell wrote:
>> # HG changeset patch
>> # User Ian Campbell <ian.campbell@xxxxxxxxxx>
>> # Date 1293182819 0
>> # Node ID 923c2e711e5fc2b9e03afc6b55df4a6b24c63c8d
>> # Parent  98db4e9677d13accd8f38ebe9d90dcf2221afac5
>> libxc: Use .opic to build xenctrl_osdep_ENOSYS.so
>> 
>> Resolves build error:
>>     /usr/bin/ld: xenctrl_osdep_ENOSYS.o: relocation R_X86_64_32 against `a
>> local symbol' can not be used when making a shared object; recompile with
>> -fPIC
>>     xenctrl_osdep_ENOSYS.o: could not read symbols: Bad value
>>     collect2: ld returned 1 exit status
>> 
>> Clean up object files correctly too.
>> 
>> Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
>> 
>> diff -r 98db4e9677d1 -r 923c2e711e5f tools/libxc/Makefile
>> --- a/tools/libxc/Makefile Fri Dec 24 08:58:14 2010 +0000
>> +++ b/tools/libxc/Makefile Fri Dec 24 09:26:59 2010 +0000
>> @@ -62,6 +62,8 @@ GUEST_SRCS-$(CONFIG_X86)     += xc_cpuid
>>  GUEST_SRCS-$(CONFIG_X86)     += xc_cpuid_x86.c
>>  GUEST_SRCS-$(CONFIG_IA64)    += xc_dom_ia64.c
>>  
>> +OSDEP_SRCS-y                 += xenctrl_osdep_ENOSYS.c
>> +
>>  -include $(XEN_TARGET_ARCH)/Makefile
>>  
>>  CFLAGS   += -Werror -Wmissing-prototypes
>> @@ -81,6 +83,9 @@ CTRL_PIC_OBJS := $(patsubst %.c,%.opic,$
>>  
>>  GUEST_LIB_OBJS := $(patsubst %.c,%.o,$(GUEST_SRCS-y))
>>  GUEST_PIC_OBJS := $(patsubst %.c,%.opic,$(GUEST_SRCS-y))
>> +
>> +OSDEP_LIB_OBJS := $(patsubst %.c,%.o,$(OSDEP_SRCS-y))
>> +OSDEP_PIC_OBJS := $(patsubst %.c,%.opic,$(OSDEP_SRCS-y))
>>  
>>  LIB := libxenctrl.a
>>  ifneq ($(stubdom),y)
>> @@ -129,7 +134,8 @@ clean:
>>  clean:
>> rm -rf *.rpm $(LIB) *~ $(DEPS) \
>>              $(CTRL_LIB_OBJS) $(CTRL_PIC_OBJS) \
>> -            $(GUEST_LIB_OBJS) $(GUEST_PIC_OBJS)
>> +            $(GUEST_LIB_OBJS) $(GUEST_PIC_OBJS) \
>> +            $(OSDEP_LIB_OBJS) $(OSDEP_PIC_OBJS)
>>  
>>  .PHONY: rpm
>>  rpm: build
>> @@ -190,8 +196,8 @@ libxenguest.so.$(MAJOR).$(MINOR): $(GUES
>>  libxenguest.so.$(MAJOR).$(MINOR): $(GUEST_PIC_OBJS) libxenctrl.so
>> $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenguest.so.$(MAJOR)
>> $(SHLIB_LDFLAGS) -o $@ $(GUEST_PIC_OBJS) $(COMPRESSION_LIBS) -lz -lxenctrl
>> $(PTHREAD_LIBS)
>>  
>> -xenctrl_osdep_ENOSYS.so: xenctrl_osdep_ENOSYS.o libxenctrl.so
>> - $(CC) -g $(CFLAGS) $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ xenctrl_osdep_ENOSYS.o
>> -lxenctrl
>> +xenctrl_osdep_ENOSYS.so: $(OSDEP_PIC_OBJS) libxenctrl.so
>> + $(CC) -g $(CFLAGS) $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ $(OSDEP_PIC_OBJS)
>> -lxenctrl
>>  
>>  -include $(DEPS)
>>  
> 
> 



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>