This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: collect2: ld terminated with signal 10 [Bus error]
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: collect2: ld terminated with signal 10 [Bus error]
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 30 Jun 2000 12:10:09 -0600
- cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <200006291650.MAA20413@hiauly1.hia.nrc.ca>you write:
> >
> > With todays CVS and binutils 2.10.90, the following occurs executing the
> > libio hounddog.exp under hppa1.1-hp-hpux10.20:
> >
> > Running ../../../../libio/testsuite/libio.tests/hounddog.exp ...
> > Executing on host: /xxx/gnu/gcc-2.96/objdir/gcc/xgcc -B/xxx/gnu/gcc-2.96/
> objdir/gcc/ ../../../../libio/testsuite/../tests/hounddog.cc -O3 -I.. -I..
> /../../../libio/testsuite/.. -nostdinc++ -I/xxx/gnu/gcc-2.96/libstdc++ -I/
> xxx/gnu/gcc-2.96/libstdc++/stl -L/xxx/gnu/gcc-2.96/objdir/hppa1.1-hp-hpux10
> .20/threads/libstdc++ -L/xxx/gnu/gcc-2.96/objdir/hppa1.1-hp-hpux10.20/threa
> ds/libiberty -L/xxx/gnu/gcc-2.96/objdir/hppa1.1-hp-hpux10.20/threads/libib
> erty -g -lstdc++ -liberty -lm -threads -o /xxx/gnu/gcc-2.96/objdir/hppa1.1
> -hp-hpux10.20/libio/testsuite/hounddog (timeout = 300)
> > <command line>: warning: The C standard requires whitespace after #define
> __STDC_EXT__
> > collect2: ld terminated with signal 10 [Bus error]
> > /usr/ccs/bin/ld: Unsatisfied symbols:
> > bad_typeid virtual table(data)
>
> Here is a patch to fix the problem related the above unsatisfied symbol.
> Under hpux, weak (sdef) data symbols need to be .EXPORT'd or else they
> are local. The code in varasm.c implicitly assumes that weak symbols
> are global.
>
> With this patch, weak symbol support now works under hpux 10.20. Yeah!
>
> Dave
> --
> J. David Anglin dave.anglin@nrc.ca
> National Research Council of Canada (613) 990-0752 (FAX: 952-6
> 605)
>
> 2000-06-27 J. David Anglin <dave@hiauly1.hia.nrc.ca>
>
> * pa/som.h (ASM_WEAKEN_LABEL): Export weak data symbols so that they
> have global scope.
Thanks. Installed.
jeff