[uClibc] simple compile fails on sh4

Mike Frysinger vapier at gentoo.org
Fri Nov 5 13:52:48 UTC 2004


On Friday 05 November 2004 02:49 am, Joakim Tjernlund wrote:
> > /usr/lib/gcc/sh4-linux-uclibc/3.4.2/../../../libgcc_s.so: undefined
> > reference to `dl_iterate_phdr'
> > collect2: ld returned 1 exit status
> > -mike
>
> There is a dl_iterate_phdr() function in uClibc ld.so(ldso/lds/dl-elf.c)
> but has lots of #ifdef around it.

yep, i did see that ...
one of the things 'protecting' that function is PIC ... if PIC is enabled, 
that function is removed ...
sh, afaik, requires shared libraries to be built with PIC (try to compile/run 
something w/out pic shared objects and it'll kindly refuse, telling you to 
rebuild it with PIC enabled)

so the question is, why is that function trimmed if PIC is enabled ?
-mike



More information about the uClibc mailing list