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

Re: [Xen-devel] [PATCH]: Implement bzip2 and LZMA loaders / xen-unstable

To: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: Re: [Xen-devel] [PATCH]: Implement bzip2 and LZMA loaders / xen-unstable stubdom pvgrub support
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Tue, 13 Oct 2009 17:17:04 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Chris Lalancette <clalance@xxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, Gerd Hoffmann <kraxel@xxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Tue, 13 Oct 2009 09:17:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20091008200800.GI1434@xxxxxxxxxxx>
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: <C6B42D7A.129F7%keir.fraser@xxxxxxxxxxxxx> <C6B431D3.129FE%keir.fraser@xxxxxxxxxxxxx> <20090821201200.GW19938@xxxxxxxxxxxxxxx> <20090821212230.GX19938@xxxxxxxxxxxxxxx> <alpine.DEB.2.00.0908241453260.31592@kaball-desktop> <20090825152319.GB19938@xxxxxxxxxxxxxxx> <20090901190855.GC31123@xxxxxxxxxxx> <20091008200800.GI1434@xxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Thu, 8 Oct 2009, Pasi Kärkkäinen wrote:
> 
> Hello again,
> 
> Stefano: Have you ever seen this kind of linking failures with
> stubdoms/ioemu? 
> 
> Any ideas?
> 
> -- Pasi
> 
> On Tue, Sep 01, 2009 at 10:08:55PM +0300, Pasi Kärkkäinen wrote:
> > 
> > Attached are my current work-in-progress patches. It still doesn't link 
> > properly.. 
> > 
> > Stefano: Would you like to take a look? The patches are against current 
> > xen-unstable.
> > 
> > I'm getting weird linking error about stdin/stdout/stderr missing.. 
> > libc (newlib) is definitely linked in, so I'm not sure what's happening.. 
> > 
> > ld -nostdlib 
> > -L/root/xen-unstable.hg/stubdom/cross-root-i686/i686-xen-elf/lib -m 
> > elf_i386 -T arch/x86/minios-x86_32.lds
> > /root/xen-unstable.hg/stubdom/mini-os-x86_32-ioemu/mini-os.o -o 
> > /root/xen-unstable.hg/stubdom/mini-os-x86_32-ioemu/mini-os
> > 
> > xen-unstable.hg/stubdom/mini-os-x86_32-ioemu/mini-os.o: In function 
> > `bzopen_or_bzdopen':
> > xen-unstable.hg/stubdom/bzip2-x86_32/bzlib.c:1411: undefined reference to 
> > `__ctype_b_loc'

__ctype_b_loc is missing from newlib so you need to implement it
yourself.
See for example "minios: implement ffs, ffsl and ffsll.".


> > xen-unstable.hg/stubdom/bzip2-x86_32/bzlib.c:1447: undefined reference to 
> > `stdin'
> > xen-unstable.hg/stubdom/bzip2-x86_32/bzlib.c:1447: undefined reference to 
> > `stdout'
> > ...

bzip2 doesn't use autotools and the bzip2 Makefile seems to ignore any
environmental variable for CFLAG so you are not compiling it against
newlib at all.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>