A mininal example to illustrate this ld bug.
Below makefile causes it to crash(reading from 0000002c).

>ld --version
GNU ld version 2.17.50 20060824
Copyright 2005 Free Software Foundation, Inc.

------------8<---8<----------------
CC = gcc

all: foo.dll

foo.def: Makefile
        @echo 'LIBRARY foo.dll' > $@
        @echo 'EXPORTS'        >> $@
        @echo '  foo @1'       >> $@
        @echo '  missing @2'   >> $@

foo.c: Makefile
        @echo 'int foo (void) { return 1; }' > $@

foo.dll foo.dll.a: foo.def foo.o
        gcc -shared -o foo.dll -Wl,--out-implib,foo.dll.a $^

------------8<---8<----------------

--gv
[EMAIL PROTECTED]

-- 
           Summary: ld crashes on missing exports
           Product: binutils
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: giva at bgnett dot no
                CC: bug-binutils at gnu dot org
  GCC host triplet: mingw-win32


http://sourceware.org/bugzilla/show_bug.cgi?id=3463

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to