Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <3962E22D.C83D5E9@ece.gatech.edu> Date: Wed, 05 Jul 2000 03:22:21 -0400 From: Charles Wilson 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: Re: binutils-20000625 and --enable-auto-image-base References: <39629555 DOT D74ABFDD AT ece DOT gatech DOT edu> <200007050153 DOT VAA03219 AT envy DOT delorie DOT com> <3962989F DOT B1FAB50E AT ece DOT gatech DOT edu> <20000704220656 DOT A3751 AT cygnus DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Chris Faylor wrote: > > On Tue, Jul 04, 2000 at 10:08:31PM -0400, Charles Wilson wrote: > >Well, he seems to have submitted it to the main binutils list > >(http://sourceware.cygnus.com/ml/binutils/1999-q3/msg00538.html). But, I > >can't seem to find any evidence that it was actually committed in the > >main binutils. > > > >Is it possible to include Mumit's patch, and the one posted by Eric > >Fifer a few days ago, and release another version of cygwin-binutils (or > >push those two patches into the main binutils, since you're releasing > >out of sourceware)? I will try to sync up Mumit's patch with the > >20000625 source code tonight... > > It's possible. Maybe DJ will even be able to commit Mumit's change. > > I don't know what Eric Fifer's change was but if it is the dllwrap > fix, it's already in cvs. > I've pasted gzip-uuencoded versions of the two binutils patches below. The first one, pe.em.patch-chuck.gz, adds libfoo.dll.a, foo.dll.a to the list of files to search for when hunting '-lfoo'. The second one, pe.em.patch-mumit.gz, is an updated version of Mumits original '--enable-auto-image-base' patch from http://sourceware.cygnus.com/ml/binutils/1999-q3/msg00538.html. This now applies cleanly to the version of binutils in CVS. However, I was unable to test Mumit's patch because somewhere along the road between 19990818 and 20000625, --shared 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 I have not been able to track this down although I've been trying for hours. I do not know what is causing this error. Can anyone give any pointers? --Chuck Wed Jul 05 03:18:00 2000 Charles Wilson * ld/emultempl/pe.em: institute the following search order for dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import libs), libfoo.dll, foo.dll (link direct to dll). Fall back to static lib (libfoo.a) if none of the above are found. begin 664 pe.em.patch-chuck.gz M'XL("&.M8CD``W!E+F5M+G!A=&-H,0"E5$V/VC`0/3>_XC72JD`2PH9%*X&Z MXM1##SWM'85DW+7D?,AQ*NB*_UX['TN@(8!V+DD\?N/WWG AT 2<\;@E?(7MCPM M%1>%%_TI?!'[E)1"49(+/Z=XU_)?7DO"S%,`3 AT F"YF"T7SPAF MLYGE.,Y0\7/@\W(QKX'K-;S'>1"XP1.2]IF-#88`;"08MB7#\,`I9W#<+_4L9@^X)OI[$0 MMN7<@PAKS#5BC^.557'Q)WB5>]@LRRHD&)>%F@(3WZ2+7#NB6*5?6^/"?BC\ MAZ+:ZJ)KAHL/D2M#N2VL236UIV%3':-<$B,I*0;MKL,-8YE M$AKSK3!$G`M$].::BRX]P*;J+=?8KQ"Q6=\HN=]D.:6;+8N/)2G5Z^.FJ^]M MI_X78B.EW=$C$\/TALAY;7_/.F'<,L=@%.J;+=-0TCU>GD)2E7.G>CEL_HZ=74T\^>'1?[6L?A=.E AT G;\>S"6Q'/-1 ;4?->6GGZEUP?W`QS * ld/emultempl/pe.em (pe_enable_auto_image_base): New variable. (longopts): New --{enable,disable}-auto-image-base options. (gld_${EMULATION_NAME}_list_options): Document. (gld_${EMULATION_NAME}_parse): Handle. (strhash): New static function. (compute_dll_image_base): New static function. (gld_${EMULATION_NAME}_set_symbols): Use. begin 777 pe.em.patch-mumit.gz M'XL("&BX8CD``W!E+F5M+G!A=&-H,@"55O]3VD AT 4_]G,_1'O[,R5&((!%2RH M%17OO$%P%*;MM+U,2#:Z8TBX[*;:4?_W>[N;!)"$>OM+8/=]/N_[V_6H[X.9 MQ`.8T##A-&"F^X-M!]XVF28!)]-9L#TC-3+-SPO.--,T?X7?&"4$_DX"@%UH M--I[5GNO!0W+LC3#,-:1+P%WVCOU]FX*/#X&LU[?KS;!$)\6'!]K\([Z'O'A MK-^W;\975\/KD0:,.YRZX-XY,6S-B!TEW$8AVZ(00YY;8$X<):0LYWY'0H[X&&I!'3N(0W"AD/-6! MILS0FDQ!1SG5_""=:EG5?>446DM#`L.KT<5P8(_^&E^>V+W!Z/K+QD8EW;RX MO.I?G-CG%_W>H'O9`P/J^@KR4_=Z8)^-4?*T.^K9O<\B0#4OAA^=G&S%E],G[J2 M9Y?Q.'$Y1#-.HQ""*+S%G^SK=SC4X$DFH&'MB`0TK&::`("G34R5J>IALPHQ M^3>A,?%L)[Y-IB3D55D952C.QDM5<3PX<6AZ"9*X#B9Q%,6?(%T9E3,7A MS0C=:#IS%NPJYYG'%K&&P*JJ-475FK)J35&U:TF*`YP1>I3];\:2E`K_LL9! M:@4I8+%>-'A17=/8;\BD[;>J']*D^;,8.]2'BNBO*MB530#3+$X"S-#(5'>4$P4^<9U'$A`LH M"5+2CV(QA]EZ16]:21 AT 0QB!A)`8V(R[U*6$0A>173I24Y)SY+,*RXN"L]R7/ M>E:36':RZ/9VK6J]#L;>[GYU-RL[C+S0L=)X;2U5BE>&%P2VRGQZR>!M4>]D M`A/,W+UT:YFKN/_:2A#67D7U3B951E[2BF]BMUZS+W0OB&@!CDR>8%\))_'_ M;YJ1WZ))R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