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 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'm gonna do that. Expect an email soon.

I just compiled a debug version of ld, and now I get the enclosed
message.

Phil.

g++ -shared -Wl,-soname,stg.so,-Bsymbolic -o stg.so __version__.o stg.o stgaristo.o stgfs.o stgio.o stgMf.o stgnt.o stgopen.o stgPtrPersistor.o stgstreamb.o stgtar.o  -L/usr/openwin/lib   -L/home/phil/work/build-cov/gandalf/lib -L/home/phil/work/build-cov/tpc/lib  -lpthread -lm -lc -lstd7d -ltls15d     -lbase -lmultifile
collect2: ld terminated with signal 10 [Bus Error], core dumped
stgstreamb.o: In function `stgStreamBufCL::sync(void)':
/home/phil/work/build-cov/gandalf_src/stg/src/stgstreamb.cpp:156: undefined reference to `a.dtors)      }
  .rel.got     0 : { *(.rel.got)                }
  .rela.got    0 : { *(.rela.got)               }
  .rel.sdata   0 :
    {
      *(.rel.sdata)
    }
  .rela.sdata   0 :
    {
      *(.rela.sdata)
    }
  .rel.sbss    0 : { *(.rel.sbss)               }
  .rela.sbss   0 : { *(.rela.sbss)      }
  .rel.bss     0 : { *(.rel.bss)                }
  .rela.bss    0 : { *(.rela.bss)               }
  .rel.plt     0 : { *(.rel.plt)                }
  .rela.plt    0 : { *(.rela.plt)               }
  .init        0 : 
  { 
    KEEP (*(.init))
  } =0
  .text    0 :
  {
    *(.text)
    *(.stub)
    /* .gnu.warning sections are handled specially by elf32.em.  */
    *(.gnu.warning)
  } =0
  .fini    0 :
  {
    KEEP (*(.fini))
  } =0
  .rodata 0 : { *(.rodata)   }
  .rodata1 0 : { *(.rodata1) }
  /* Adjust the address for the data segment.  We want to adjust up to
     the same address within the page on the next page up.  */
  .data  0 :
  {
    *(.data)
  }
  .data1 0 : { *(.data1) }
  .eh_frame : { *(.eh_frame) }
  .gcc_except_table : { *(.gcc_except_table) }
  .plt    0 : { *(.plt) }
  .got         0 : { *(.got.plt) *(.got) }
  .dynamic     0 : { *(.dynamic) }
  /* We want the small data sections together, so single-instruction offsets
     can access them all, and initialized data all before uninitialized, so
     we can shorten the on-disk segment size.  */
  .sdata   0 : 
  {
    *(.sdata) 
  }
  .sbss    0 :
  {
    *(.dynsbss)
    *(.sbss)
    *(.scommon)
  }
  .bss     0 :
  {
   *(.dynbss)
   *(.bss)
   *(COMMON)
   /* Align here to ensure that the .bss section occupies space up to
      _end.  Align after .bss to ensure correct alignment even if the
      .bss section disappears because there are no input sections.  */
  }
  /* Stabs debugging sections.  */
  .stab 0 : { *(.stab) }
  .stabstr 0 : { *(.stabstr) }
  .stab.excl 0 : { *(.stab.excl) }
  .stab.exclstr 0 : { *(.stab.exclstr) }
  .stab.index 0 : { *(.stab.index) }
  .stab.indexstr 0 : { *(.stab.indexstr) }
  .comment 0 : { *(.comment) }
  /* DWARF debug sections.
     Symbols in the DWARF debugging sections are relative to the beginning
     of the section so we begin them at 0.  */
  /* DWARF 1 */
  .debug          0 : { *(.debug) }
  .line           0 : { *(.line) }
  /* GNU DWARF 1 extensions */
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
  .debug_sfnames  0 : { *(.debug_sfnames) }
  /* DWARF 1.1 and DWARF 2 */
  .debug_aranges  0 : { *(.debug_aranges) }
  .debug_pubnames 0 : { *(.debug_pubnames) }
  /* DWARF 2 */
  .debug_info     0 : { *(.debug_info) }
  .debug_abbrev   0 : { *(.debug_abbrev) }
  .debug_line     0 : { *(.debug_line) }
  .debug_frame    0 : { *(.debug_frame) }
  .debug_str      0 : { *(.debug_str) }
  .debug_loc      0 : { *(.debug_loc) }
  .debug_macinfo  0 : { *(.debug_macinfo) }
  /* SGI/MIPS DWARF 2 extensions */
  .debug_weaknames 0 : { *(.debug_weaknames) }
  .debug_funcnames 0 : { *(.debug_funcnames) }
  .debug_typenames 0 : { *(.debug_typenames) }
  .debug_varnames  0 : { *(.debug_varnames) }
  /* These must appear regardless of .  */
}

'
make: *** [stg.so] Error 1
zsh: 622 exit 2     make

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