Bug 3463 - ld crashes on missing exports
Summary: ld crashes on missing exports
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 20:15 UTC by Gisle Vanem
Modified: 2006-11-07 12:06 UTC (History)
1 user (show)

See Also:
Host: mingw-win32
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gisle Vanem 2006-11-06 20:15:50 UTC
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
giva@bgnett.no
Comment 1 Gisle Vanem 2006-11-07 12:06:46 UTC
Forget about it. I can see the bug is *not* in 
GNU ld version 2.17.50 20060824