From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: [PATCH]: Implement bzip2 and LZMA loaders / xen-unstable stubdom pvgrub support Date: Thu, 8 Oct 2009 23:08:00 +0300 Message-ID: <20091008200800.GI1434@reaktio.net> References: <20090821201200.GW19938@edu.joroinen.fi> <20090821212230.GX19938@edu.joroinen.fi> <20090825152319.GB19938@edu.joroinen.fi> <20090901190855.GC31123@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20090901190855.GC31123@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , Chris Lalancette , Gerd Hoffmann , Keir Fraser List-Id: xen-devel@lists.xenproject.org Hello again, Stefano: Have you ever seen this kind of linking failures with stubdoms/ioemu?=20 Any ideas? -- Pasi On Tue, Sep 01, 2009 at 10:08:55PM +0300, Pasi K=E4rkk=E4inen wrote: >=20 > Attached are my current work-in-progress patches. It still doesn't link= properly..=20 >=20 > Stefano: Would you like to take a look? The patches are against current= xen-unstable. >=20 > I'm getting weird linking error about stdin/stdout/stderr missing..=20 > libc (newlib) is definitely linked in, so I'm not sure what's happening= ..=20 >=20 > ld -nostdlib -L/root/xen-unstable.hg/stubdom/cross-root-i686/i686-xen-e= lf/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/x= en-unstable.hg/stubdom/mini-os-x86_32-ioemu/mini-os >=20 > xen-unstable.hg/stubdom/mini-os-x86_32-ioemu/mini-os.o: In function `bz= open_or_bzdopen': > xen-unstable.hg/stubdom/bzip2-x86_32/bzlib.c:1411: undefined reference = to `__ctype_b_loc' > 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' > ... >=20 > In the earlier step mini-os.o was definitely linked against -lc ..=20 >=20 > "strings /path/mini-os.o | grep -i stdin" doesn't give anything though.= .=20 > I wonder why the stuff doesn't get included there. >=20