Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Wed, 10 Feb 1999 18:16:33 +0100 From: Juergen Lock To: Mumit Khan , Juergen Lock , gnu-win32 AT cygnus DOT com Subject: Re: stop! (was: Re: cross compiler build fail (multiple definition of `fhandler_base::get_native_name(void)', and more)) Message-ID: <19990210181633.A8556@saturn.hb.north.de> Mail-Followup-To: Mumit Khan , Juergen Lock , gnu-win32 AT cygnus DOT com References: <199902100458 DOT WAA14099 AT modi DOT xraylith DOT wisc DOT edu> <19990210154630 DOT A5707 AT saturn DOT hb DOT north DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <19990210154630.A5707@saturn.hb.north.de>; from Juergen Lock on Wed, Feb 10, 1999 at 03:46:30PM +0100 On Wed, Feb 10, 1999 at 03:46:30PM +0100, Juergen Lock wrote: > Bingo! thats it, build went through. Now i seriously wonder why it > didn't happen with b17... :( so sorry for the false alarm, boy do i > feel stupid... This was the offending patch, now i have to find out how to fix it... Regards, Juergen Index: ../ld/ldlang.c @@ -661,6 +661,8 @@ static struct sec_link_once *sec_link_once_list; flagword flags; const char *name; + off_t off; + bfd *sowner; struct sec_link_once *l; /* If we are only reading symbols from this object, then we want to @@ -677,10 +679,18 @@ return; name = bfd_get_section_name (abfd, sec); + /* XXX private.. */ + sowner = (sec)->owner; /* unique? */ + off = (sec)->filepos; for (l = sec_link_once_list; l != NULL; l = l->next) { +#if 1 + if (strcmp (name, bfd_get_section_name (l->sec->owner, l->sec)) == 0 + && l->sec->owner == sowner && l->sec->filepos == off) +#else if (strcmp (name, bfd_get_section_name (l->sec->owner, l->sec)) == 0) +#endif { /* The section has already been linked. See if we should issue a warning. */ Index: ../ld/ldlang.c @@ -687,7 +687,9 @@ { #if 1 if (strcmp (name, bfd_get_section_name (l->sec->owner, l->sec)) == 0 - && l->sec->owner == sowner && l->sec->filepos == off) + /*&& (l->sec->owner != sowner || l->sec->filepos == off)*/ + && (!l->sec->pe_comdat_sym_name || !sec->pe_comdat_sym_name + || strcmp (l->sec->pe_comdat_sym_name, sec->pe_comdat_sym_name) == 0)) #else if (strcmp (name, bfd_get_section_name (l->sec->owner, l->sec)) == 0) #endif -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com