[parisc-linux] Re: still getting $$dyncall refs in shlibs

John David Anglin dave@hiauly1.hia.nrc.ca
Thu, 24 May 2001 18:59:17 -0400 (EDT)


> On Thu, May 24, 2001 at 03:59:30PM -0600, LaMont Jones wrote:
> > > With the new toolchain, sipp still builds a libsipp.so.3.1 trips the
> > > bug checker.  Checking everything on the system doesn't find any bad
> > > libs.  Here is the build output for libsipp.so:
> 
> Too much can go wrong building shared libs just using ld.  It's far
> better to build using gcc -shared.  In this case, the problem is that
> the shlib needs to be built linked against libgcc to satisfy the
> millicode reference.

That also applies to libtool which uses `ld' directly.  Gcc will run
collect2 if needed.  This is necessary for correctly processing
constructors and destructors.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)