This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: other/4878: gcc 3.0.2 output crashes HP-UX linker
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: porten at trolltech dot com (Harri Porten)
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Nov 2001 12:50:58 -0500 (EST)
- Subject: Re: other/4878: gcc 3.0.2 output crashes HP-UX linker
[Get raw message]
> On Wed, 14 Nov 2001, John David Anglin wrote:
>
> > > >How-To-Repeat:
> > > g++ -shared -fPIC crash.cpp
> >
> > Adding -Wl,-v to the above g++ command somehow prevents ld from dumping
> > core and provides this bit of additional information:
>
> Thanks for the hint. Doesn't produce any lib output either, does it ?
Nope. This is a sticky problem. You can look at the symbol table for
the object file, and try to guess where the problem lies. There is a
version of the som linker available in source code. I haven't tried
to build it. If you want to try debug the linker, I could send it.
There are certain limitations on symbol names. Jeff Law knows the most
about it. An attempt at implementing weak symbols and function sections
was removed because of problems with the linker.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)