What is needed to support uclinux shared libraries on MMU-lessARM?
Bernardo Innocenti
bernie@develer.com
Tue Jun 15 12:15:00 GMT 2004
themadrasi wrote:
> <snip>
>
>> binfmt_flat.c does some special things for libraries, but
>> there's nothing about lib_main or passing something in D5.
>> I've grepped the kernel looking for the place where D5 is
>> initialized, but I couldn't find it.
>>
>> There's no ld.so in uClinux (at least, not for uClibc),
>> so I'm completely lost :-)
>
> There is an ldso in uClibc . Maybe not for MMU less architectures :-) .
Yes, it's only used with MMU-enabled Linux kernels.
> From what little I know of uClinux / uClibc the GOT is handled by the
> fs/binfmt_flat.c file for the flat file formats
Yes. It remains a mystery who calls lib_main and where
the kernel fills-in %d5 and, most importantly, with what :-)
> For uClibc on MMU systems there is an ldso that is used.
I've seen it on the ARM in the uClibc root filesystem
image. I suppose it works much like glibc's ld.so...
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
More information about the Gcc
mailing list