bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld cygwin crash


From: Neil Phillips
Subject: Re: ld cygwin crash
Date: Mon, 11 Oct 2004 12:25:17 +0100
User-agent: Internet Messaging Program (IMP) 3.2.3

Hi,

The problem appears to only affect the binutils distributed with cygwin
(binutils-20040725-2), which is not the same as the official 2.15 release.

The offical 2.15 release builds and works correctly, however I had trouble
building the latest snapshot (041009).

The problem is present after building the cygwin version from source, which
results in the following,

--------------------------------------------------------------------------
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) run test.o
Starting program: /usr/src/binutils-cygwin/bin/ld.exe test.o

Program received signal SIGSEGV, Segmentation fault.
0x00440936 in coff_link_add_symbols (abfd=0xa060fe8, info=<incomplete type>)
    at cofflink.c:455
455                      if (! (bfd_coff_link_add_one_symbol
(gdb) bt
#0  0x00440936 in coff_link_add_symbols (abfd=0xa060fe8,
    info=<incomplete type>) at cofflink.c:455
#1  0x0043ffcc in coff_link_add_object_symbols (abfd=0xa060fe8,
    info=<incomplete type>) at cofflink.c:181
#2  0x0040919d in load_symbols (entry=0xa051958, place=0x22ef80)
    at ldlang.c:1407
#3  0x00409c1f in open_input_bfds (s=0xa051898, force=0) at ldlang.c:1821
#4  0x0040cf1b in lang_process () at ldlang.c:4201
#5  0x00410115 in main (argc=3, argv=0xa0517a0) at ldmain.c:476
----------------------------------------------------------------------------

the object file (test.o as described previously) produced by the official
and cygwin-modified gas is identicle.

This looks like a problem for the cygwin developers rather than the official
binutils.

Cheers,
Neil Phillips




reply via email to

[Prev in Thread] Current Thread [Next in Thread]