This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: binutils-20000625 and --enable-auto-image-base


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@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 <cwilson@ece.gatech.edu>

	* 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@2<\;@E?(7MCPM
M%1>%%_TI?!'[E)1"49(+/Z<I)1_YGISE>=XU_)?7DO"S%,`3@F"YF"T7SPAF
MLYGE.,Y0\7/@\W(QKX'K-;S'>1"XP1.<ZF4^QWIMP0)0*,G3W_B.4?062DS&
MV"6A$%F$D4X)2O630AF]>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;M<L$CKL"3/),*>KL,-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;+=-0T<UF761TDUMUW.O7B6<F
MF"1J]QJ=QXPD5<H4+!0%K;K7N\_JSEW1WZBGZ"CS<^9WBMRA]V0@W\_G4XOX
MP5/]V]B[4">CU>GD)2E7.G>CEL_HZ=74T\^>'1?[6L?A=.E@G;\>S"6Q'/-1
;4?->6GGZEUP?W`QS<Y*2I3[H'S;707R/!@``
`
end


Sun Aug 29 18:45:58 1999  Mumit Khan  <khan@xraylith.wisc.edu>

        
        * 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@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<!"9TI@4,8C/O]SJHD13/H
M9%702`5IR`'%\'`2$-M)>(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#<YQP)Q,1Z5V*?#
MRZON:*ZXF%/AC5=X-.VDW[.[X]$0N;I_]NR3[DUOT8>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#B<F>9Q%,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-<G%`!G
M@@F'7`Q2L=JW<%/7.^7L2QF!@G4:$\$W<=Q[M,0#!:`8.$`0Z@`$LLYZ/6]:
MKM)DBS%F']Q\N3P9]H_`8?!`@B!SQ"ASI+@\%NB[>#(5'>4$P4^<9U'$A`LH
M"5+2CV(QA]EZ16]:21@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.AM2#PYBT%LQW<.NX/*XDV)FW@A/`DU:CM'I>?2@F4JP;*\+2YL
M=W4+;]^.,`@D)/<'M_/?#']5"C7KXD:1,@]W6'M0J;@HN\4,0X??#^']-^N]
MKJ+SE`5):C$.P<6[":4/#J#>TCM+I_\<JN_1$33R$\-0EJJ@&G,B82E2B<\"
M61&1V$]3D8;G16QN;\$8,\GO"*@W"8@^`AYE4\1YW=HQ"2*<C*(@9)O78&N[
M.*6:(2H]X:KJ%^IF*<&14)BE>#6/&-*\+I1H9\$5Z[%IJ07/F``I)@+1U.$/
M/#P_/Q5G>NHMH+==)C3`#R=(<)2@G\)U.5N<`-C/Z20*&$P(>JJB$M#P7DP?
M-Z8S#I3)RL;0>#40CJ?CH%G'=ZC1M%KYPT$LBF-)X&T:^E$M#1P1D<-WR08-
M*?\J^TVTV_#\_'M-6I6^']4B@1A(R".E,=X+<L_/,&=G&$SBZ9JYCG<PLL4+
M>=[D&)@-M+,<42GM?AT^2K`<)R5Y?O7,U:%=9,*"J^O#@MC>Y]XJ]D7[#^(\
&T7S0#```
`
end

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]