__GLIBC__ #define

NightStrike nightstrike at gmail.com
Mon Feb 19 15:50:40 PST 2007


On 2/19/07, Joseph S. Myers <joseph at codesourcery.com> wrote:
> On Mon, 19 Feb 2007, Kevin Day wrote:
>
> > as far as I have been able to tell, dl_iterate_phdr is not in uClibc,
>
> It is in uClibc: ldso/ldso/dl-elf.c.
>
> Thus, *if* your ld is correctly configured so that it can locate ld.so
> from the dependency in libc.so, it will see that libc depends on (has a
> DT_NEEDED entry for) ld.so and follow that to resolve the reference to
> dl_iterate_phdr.
>
> The problem is for the static linking case, where such dependencies don't
> exist and the function is in static libdl but not static libc.


I was using the i386 environment
(http://www.uclibc.org/downloads/root_fs_i386.ext2.bz2).  Is ld not
configured properly in that environment?


More information about the uClibc mailing list