This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Oops, serious ld bug cropped up
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>, Tristan Gingold <gingold at adacore dot com>
- Date: Thu, 01 Oct 2009 17:12:29 +0100
- Subject: Oops, serious ld bug cropped up
Hi Tristan,
We just had a bug report(*) that compiling gettext-0.17 on cygwin leads to a
segfault in LD, and sure enough it's present on the branch:
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/crtend.o
> Creating library file: .libs/libintl.dll.a
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0044bc09 in _bfd_coff_generic_relocate_section (output_bfd=0x1b53438,
> info=0x4c71e0, input_bfd=0x1c21b40, input_section=0x1c22ff0,
> contents=0x1e76690 "U\211å\203ì\030\211]ô\213]\b\211uø\211}ü\205Û\017\204¦",
> relocs=0x1eed3e0, syms=0x1ef41a0, sections=0x1c632f8)
> at /gnu/binutils/src-2_20/bfd/cofflink.c:2973
> 2973 val = h2->root.u.def.value
> (gdb) bt
> #0 0x0044bc09 in _bfd_coff_generic_relocate_section (output_bfd=0x1b53438,
> info=0x4c71e0, input_bfd=0x1c21b40, input_section=0x1c22ff0,
> contents=0x1e76690 "U\211å\203ì\030\211]ô\213]\b\211uø\211}ü\205Û\017\204¦",
> relocs=0x1eed3e0, syms=0x1ef41a0, sections=0x1c632f8)
> at /gnu/binutils/src-2_20/bfd/cofflink.c:2973
> #1 0x0044deb5 in _bfd_coff_link_input_bfd (finfo=0x113c6fc,
> input_bfd=0x1c21b40) at /gnu/binutils/src-2_20/bfd/cofflink.c:2348
> #2 0x0044f02f in _bfd_coff_final_link (abfd=0x1b53438, info=0x4c71e0)
> at /gnu/binutils/src-2_20/bfd/cofflink.c:907
> #3 0x00414b3e in ldwrite () at /gnu/binutils/src-2_20/ld/ldwrite.c:568
> #4 0x00414076 in main (argc=Cannot access memory at address 0x0
> ) at /gnu/binutils/src-2_20/ld/ldmain.c:464
> (gdb)
I'll get back in the next few hours with an assessment of how serious this is.
cheers,
DaveK
--
(*) - http://cygwin.com/ml/cygwin/2009-10/msg00033.html