Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3DCD4623.8070800@ece.gatech.edu> Date: Sat, 09 Nov 2002 12:30:11 -0500 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: Robert Collins CC: cygwin AT cygwin DOT com Subject: Re: binutils 20021107-2 References: <20021109105904 DOT 24937 DOT qmail AT web21405 DOT mail DOT yahoo DOT com> <1036844910 DOT 31190 DOT 0 DOT camel AT lifelesswks> Content-Type: multipart/mixed; boundary="------------060206080103020907000507" --------------060206080103020907000507 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Robert Collins wrote: > On Sat, 2002-11-09 at 21:59, Danny Smith wrote: > >>Hello Robert >> >>By default symbols in libstdc++.a are excluded when doing --export-all, to >>protect against this type of error. >> >>However, ld/pe-dll.c knows nothing about libstdc++-2.a. So those symbols do >>get exported ... and cause the usual problems with multiple definitions. >> >>Quick solution: Try --exclude-libs=libstdc++-2.a >> >> > > Got it in one. Should this be in the g++-2 specs? Nope. Chris should apply the attached patch to binutils and re-release. It's surprising we didn't catch this when gcc-3.x/gcc2-2.95 were getting their shakedown this summer. Oh well. Also, Chris, you could take the opportunity of binutils-20021107-3 to apply Egor's remaining patches... :-) --Chuck --------------060206080103020907000507 Content-Type: text/plain; name="ld_patch_for_gcc2.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ld_patch_for_gcc2.diff" Index: pe-dll.c =================================================================== RCS file: /cvs/src/src/ld/pe-dll.c,v retrieving revision 1.45 diff -u -r1.45 pe-dll.c --- pe-dll.c 6 Nov 2002 19:36:20 -0000 1.45 +++ pe-dll.c 9 Nov 2002 17:27:42 -0000 @@ -141,6 +141,7 @@ static struct sec *edata_s, *reloc_s; static unsigned char *edata_d, *reloc_d; static size_t edata_sz, reloc_sz; +static int runtime_pseudo_relocs_created = 0; typedef struct { @@ -234,6 +235,8 @@ { "libg2c.", 7 }, { "libsupc++.", 10 }, { "libobjc.", 8 }, + { "libstdc++-2.", 12 }, + { "libg2c-2.", 9 }, { NULL, 0 } }; --------------060206080103020907000507 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --------------060206080103020907000507--