delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/06/22:58:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <396547F2.333FBD51@ece.gatech.edu>
Date: Thu, 06 Jul 2000 23:01:06 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: binutils-20000625 ld.exe --shared broken

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 AT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019