This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: Binutils 2.9.5.0.29 ld crash


"H . J . Lu" <hjl@valinux.com> writes:

> On Fri, Mar 10, 2000 at 05:06:07PM -0800, Philippe Troin wrote:
> > "H . J . Lu" <hjl@valinux.com> writes:
> > 
> > > On Fri, Mar 10, 2000 at 04:42:03PM -0800, Philippe Troin wrote:
> > > > "H . J . Lu" <hjl@valinux.com> writes:
> > > > 
> > > > > On Fri, Mar 10, 2000 at 03:42:42PM -0800, Philippe Troin wrote:
> > > > > > 
> > > > > > It seems to be related with the debugging symbols, compiling without
> > > > > > -g seems to works.
> > > > 
> > > > Replacing -g by -O gave a crash (SIGBUS), later on in the build...
> > > > 
> > > > > It may be a compiler bug. If you can provide a complete test, I
> > > > > can look into it if I can reproduce it on Solaris 2.7/Sparc. binaries
> > > > > files are ok.
> > > > 
> > > > Can I send all the .so and .o involved in the failure ?
> > > > If yes, should they be sent directly to hjl@valinux.com or also to
> > > > binutils@sourceware.cygnus.com ?
> > > > 
> > > 
> > > It's better to put them on some web/http sites and send an email
> > > to binutils@sourceware.cygnus.com.
> > 
> > I've made this file available by ftp on:
> > 
> > ftp://binutils:binutils@ftp.aristotech.com/cust/binutils/phil@aristotech.com-crash-binutils-2.9.5.0.29.tar.bz2
> > 
> 
> Did you compile the .o files with -fpic or -fPIC? It looks like you
> didn't. At least, I didn't find the symbol, _GLOBAL_OFFSET_TABLE_,
> in those .o files. The GNU ld doesn't like -Bsymbolic without PIC.
> We just fixed one similar bug. I guess it is another one.

No, I did not compile PIC code. PIC and code coverage are incompatible
(on Solaris). So I compiled everything non-PIC, but sill in shared
libraries.

AFAIK, it ought to be ok, except the libraries will no be shared
accross processes, right ?

FYI, Sun ld refuses to link non-PIC in a shared lib. That's one of the
reasons why we're using GNU ld.

Phil.

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