delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/12/19:13:48

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://sources.redhat.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://sources.redhat.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: <396CFC18.9DC73CA3@ece.gatech.edu>
Date: Wed, 12 Jul 2000 19:15:36 -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: Re: YADLLQ: Yet Another DLL Question
References: <3966D936 DOT 4FCEA748 AT ece DOT gatech DOT edu>

Okay, this problem was another mistake in binutils. It's a small typo in
ld/pe-dll.c that crept in sometime between 19990818 and 20000625. This
patch reverts back to the (correct) 19990818 behavior.

Without this patch, an object file will have:
 U __imp__png_create_read_struct
but the dll import library will export:
 I ___imp_png_create_read_struct
which doesn't match.

With the patch, the import libary will be correct. I'm also going to
post this to the binutils list.

--Chuck


--- binutils-20000625-orig/ld/pe-dll.c  Sat Jun 24 21:54:51 2000
+++ binutils-20000625/ld/pe-dll.c       Wed Jul 12 19:05:54 2000
@@ -1443,7 +1443,7 @@
   if (! exp->flag_data)
     quick_symbol (abfd, U(""), exp->internal_name, "", tx, BSF_GLOBAL,
0);
   quick_symbol (abfd, U("_head_"), dll_symname, "", UNDSEC, BSF_GLOBAL,
0);
-  quick_symbol (abfd, U("__imp_"), exp->internal_name, "", id5,
BSF_GLOBAL, 0);
+  quick_symbol (abfd, U("_imp__"), exp->internal_name, "", id5,
BSF_GLOBAL, 0);
   if (pe_dll_compat_implib)
     quick_symbol (abfd, U("__imp_"), exp->internal_name, "", 
                   id5, BSF_GLOBAL, 0);


begin 664 binutils_ld_pe-dll.patch.gz
M'XL("`'Z;#D``V)I;G5T:6QS+3(N<&%T8V@`E9!-3X-`$(;/\BM>.=&P:P%!
M(R8&ZU=B&CV0QN-F89>Z<?FPA:3^>]G0Q#1(C7.9P\SSY)VAE")35=<JO:6!
MU]=%$-%ZH]9S+>:-I$+KL_PDY2V>NPI!B,"/HS".?)AMRW7=,7^`ODG1HQI^
M`/\J]J*>'M`D`?7#\)Q<PMWW)+$`J`+.*>2NH3>%YFLF>,MG9@!\=BK_8-NO
M,JLU')X5 AT F#EV/:,#/NJ:N6FXII5O)0$MDW0[@@6Z2-[6KXN;I<$WNS:FC:Q
M=\D%,[X^O1G_B%8O]^G#W5A&IV5,E0T[%DZ):"QTIX7&]W_A_J>-9.:HO"X;
9WAJ55MGQO_Y]P(`?UJ\9O@'ZH+Q`:0(``$Z)
`
end

--
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