This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
binutils-20000625 ld.exe --shared broken
- To: cygwin at sourceware dot cygnus dot com
- Subject: binutils-20000625 ld.exe --shared broken
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- Date: Thu, 06 Jul 2000 23:01:06 -0400
I reported this previously, but in a different thread -- I figure this
bug deserves its own thread. Somewhere between Mumit's custom 19990818
version of binutils as distributed in latest, and the more recent cygwin
binutils (20000625) which is more-or-less direct from binutils-CVS, the
--shared option broke.
I'm getting the following error, using the ==stock== cygwin
binutils-20000625 ld.exe:
------
ld --shared -Bdynamic -e __cygwin_dll_entry@12 -o libz.dll
-L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2
-L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/lib
--out-implib=libz.dll.a libz.def adler32.o compress.o crc32.o gzio.o
uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o inftrees.o
infcodes.o infutil.o inffast.o -lgcc -lcygwin -luser32 -lkernel32
-ladvapi32 -lshell32 -lgcc
Creating library file: libz.dll.a
bfd_close libz.dll.a: Invalid operation
------
This command works fine if I simply replace ld.exe with the one from the
19990818 cygwin tarball.
Can anybody recommend *where* in the code I should start looking for
this problem? (Yeah, 'bfd_close' is pretty obvious, but I saw nothing
enlightening there. The binutils code with its cross-platform-ness is
really a tangled confusing mess...)
--Chuck
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com