Bug report: binutils-20020706-2: ld SEGV with .def file

Max Bowsher maxb@ukf.net
Sun Jul 28 09:50:00 GMT 2002


I was trying to build Pierre Humblet's minires, and found that ld stackdumped
(output below). This was with binutils-20020706-2. Replacing ld.exe with the one
from binutils-20011002-1 allows the build to complete successfully. The problem
seems to be something to do with ld mishandling .def files. (Building with no
.def file, and passing -Wl,--export-all-symbols to gcc works.)

Attached is a tiny (436 bytes) tarball containing Makefile and testcase.c.

gcc -c -O2 -Wall testcase.c -o testcase.o
dlltool -z testcase.def --export-all-symbols testcase.o
gcc -shared testcase.o testcase.def -o cygtestcase.dll
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
testcase.def:2: syntax error
make: *** [cygtestcase.dll] Error 1

Max.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-stackdump-def-testcase.tar.bz2
Type: application/octet-stream
Size: 436 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020728/7cf94b1b/attachment.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list