[uClibc]Dynamic libuClibc.so woes
michaels at jungo.com
michaels at jungo.com
Wed Mar 7 08:23:57 UTC 2001
John,
I'm happy that someone else besides myself taken upon him a burden of
bringing
ld.so to uClibc. I have started looking at ld.so-1.9.11 several days ago
as an alternative to glibc's ld-linux.so.2 (in glibc's /elf dir). Too
bad, that this ld.so is using various libc5 stuff, which is header-level
incompatible with uClibc.
Most probably it will be a good idea to start with changing the headers
to represent uClibc's way of doing things (which is "based" on libc6's
headers).
I have somehow missed the point that ld-so directory may be only a part
of the story, while default make didn't go anywhere further than util/
directoruy :-).
In my compilation, I use uClibc's gcc to force usage of correct headers,
and also run into series of various assembly problems.
As a side note, I have tried to find a source RPM of ld-linux.so.1.* for
ANY distribution, to see how/where did they patch it to compile. Not a
single distribution seems to give away its secret... so we must solve
this alone, I guess.
John Lombardo wrote:
>
> Some time ago I read that uClibc can use the dynamic loader from glibc. I
> tried using the ld-linux.so.2 (actually ld.so) file from the elf directory
> of my x86 glibc 2.1.2 build, but that doesn't seem to work. The only thing
> I could get to work was the /lib/ld-linux.so.1 binary that came with my Red
> Hat 6.2 system. This, by the way, comes from the ld.so-1.9.5 package from
> the libc5 (correct name? I must be getting old) days.
>
> I wouldn't mind using this ld.so, but when I attempt to compile it, the
> compiler says:
>
> boot1.c:897: fixed or forbidden register 3 (bx) was spilled for class
> GENERAL_REGS.
> This may be due to a compiler bug or to impossible asm
> statements or clauses.
>
> I started to run this down, but got lost in the START() macro.
>
> Anyway, my real question is this: Which file from the glibc build should I
> be using? Do I have to do something special when I build glibc to get the
> correct loader, or perhaps I have to upgrade to a newer version of glibc?
>
> Any help would be appreciated.
>
> Thanks,
> John
--
Sincerely yours,
Michael Shmulevich
______________________________________
Software Developer
Jungo - R&D
email: michaels at jungo.com
web: http://www.jungo.com
Phone: 1-877-514-0537(USA) +972-9-8859365(Worldwide) ext. 233
Fax: 1-877-514-0538(USA) +972-9-8859366(Worldwide)
More information about the uClibc
mailing list