This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++-mike-eh8-C test failure
- To: jason at cygnus dot com (Jason Merrill)
- Subject: Re: g++-mike-eh8-C test failure
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Wed, 3 May 2000 20:27:20 -0400 (EDT)
- Cc: law at cygnus dot com, gcc-patches at gcc dot gnu dot org, egcs-bugs at egcs dot cygnus dot com
> > Applications that depend on shared libraries should not use archive
> > libraries to satisfy symbol imports in a shared library.
>
> Yes, absolutely. That's why we're talking about libgcc.sl. Are you
> worried about symbols from libm?
I looked at that again. It appears this isn't a problem since the pa1.1
archive version of libm is only used when the link is !shared.
> > This suggests that only a shared version of libc should be used in
> > applications using shared libraries. If an archive version of a
> > dependent library must be used, all of its definitions should be
> > explicitly exported with the -E or +e options to the linker to avoid
> > multiple definitions.
>
> Which suggests that libstdc++.sl should be built with -E.
It's worth a try. Possibly, this might cause libstdc++.sl to better
advertise the symbols that it depends on from libgcc.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)