Philippe Gerum kirjoitti:
Heikki Lindholm wrote:
libpthread_rt won't produce usable exec apps on ppc64 if it uses --wrap.
There seems to be no reason to use --wrap for building the lib itself.
Good catch for the lib flags. However, substituting __real calls with
the genuine ones seems wrong to me. You'd just end up causing the same
issue.
I don't think so. Although, I'm not sure how ld is supposed to handle
--wrap case for libraries, this works in the dynamic case, at least, for
the ppc32 and ppc64 (tested on debian sarge and gentoo ppc64), whereas
leaving the __real*'s in dynamic library will fail with unrelocatable
symbols. I suppose the library-object is excluded from --wrap if it
wasn't linked with that originally. If someone actually knows how this
should happen, do step in.
-- Heikki Lindholm