This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]