On Saturday 17 April 2010 03:23:40 Joakim Tjernlund wrote:
> > Austin Foxley wrote:
> > > On 04/16/2010 07:37 AM, Timo Teräs wrote:
> > >> Ok, second try on getting the libc - libpthread interactions right.
> > >>
> > >>
> > >> This includes the Joakim's patch for protected symbols, with a
> > >> little fix from me.
> > >
> > > I thought the hidden symbol thing would work, because I thought when
> > > you turned on stdio-futexes, everywhere used futexes. I didn't
> > > realize other places were using __pthread* symbols directly...
> >
> > Yeah, that was my impression too. But it turns out to work
> > differently :/
> >
> > > We'll need to patch all the other arch's ldso as well to handle
> > > protected symbols, but I'll apply this for now. If I'm not mistaken,
> > > other archs will be no worse off than they are now in this situation.
> > > Right?
> >
> > Right. It makes things slightly better for other archs too, but
> > in practice it won't work until they support protected symbols too.
>
> Finally looked at the ldso patch and I am not entirely happy with it.
> I think the general structure should be different to make it easier
> to follow the code and port it to other archs. I can probably
> take a stab at it during the weekend but I have no env. to test in
> so I will have to do it blindly.
>
>  Jocke

Yes you do: QEMU.

http://impactlinux.com/fwl/downloads/binaries

Grab the appropriate system-image-$ARCH.tar.bz2, extract it, run the
dev-environment.sh script to boot qemu with the included squashfs root and a 2 
gig ext2 partition mounted on /home for scratch space.  It includes native 
development tools so you can build uClibc in there, if you like.  (The release 
tarballs have qemu 0.9.30.2, source control has 0.9.31 but it's not in a 
release yet.  Gotta fix the 64 bit targets first.)

The root filesystem is read only, so you'll have to create a chroot under /home 
to test a new ldso.  If you'd like a writeable /dev/hda, you'll need to read 
this FAQ:

  http://impactlinux.com/fwl/FAQ.html#add_package

(Note that if you have a writable hda, making sure you fsck it as a 
appropriate and don't launch two qemu instances sharing the same root 
partition is your problem.  The squashfs avoids that...)

Rob
-- 
Latency is more important than throughput. It's that simple. - Linus Torvalds

_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to