[PATCH] PowerPC ldso bug (Was: Re: [uClibc] PowerPC dynamic linking)
Erik Andersen
andersen at codepoet.org
Mon Dec 8 21:35:29 UTC 2003
On Wed Dec 03, 2003 at 09:58:45AM +0100, Henrik Grindal Bakken wrote:
> My fix, which at least works for me, is to add r0 to the clobber list
> for that asm inline.
There still seems to be a bit of a problem...
I did a bit more testing the other day. mjn3 built a full
powerpc dev system and am seeing some ldso problems with it.
Using a staticly linked busybox, 'ls -l' works nicely.
[root at nail tmp]# ./busybox ls -l ./busybox
-rwxr-xr-x 1 1003 1003 550904 Dec 4 11:05 ./busybox
Using a dynamically linked busybox, the binary runs as
expected... sortof....
[root at nail tmp]# /bin/busybox ls -l ./busybox
-10s 4ld -8.8s -8.8s9lld 6.6s 5.5s ./busybox
The fact the binary runs at all shows that all the R_PPC_JMP_SLOT
relocations are happening properly since all the right function
calls are happening. But is is rather odd that printf is
printing the format string itself, rather than a nicely formatted
string. I've spent a little time, and have ruled out a few
things, but I am not sure yet what needs to be fixed in ldso for
powerpc to work as expected.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list