This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: stop! (was: Re: cross compiler build fail (multiple definition of `fhandler_base::get_native_name(void)', and more))
- To: Mumit Khan <khan@xraylith.wisc.EDU>, Juergen Lock <nox@jelal.kn-bremen.de>, gnu-win32@cygnus.com
- Subject: Re: stop! (was: Re: cross compiler build fail (multiple definition of `fhandler_base::get_native_name(void)', and more))
- From: Juergen Lock <nox@jelal.kn-bremen.de>
- Date: Wed, 10 Feb 1999 18:16:33 +0100
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-Reply-To: <19990210154630.A5707@saturn.hb.north.de>; from Juergen Lock on Wed, Feb 10, 1999 at 03:46:30PM +0100
- Mail-Followup-To: Mumit Khan <khan@xraylith.wisc.EDU>,Juergen Lock <nox@jelal.kn-bremen.de>, gnu-win32@cygnus.com
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- References: <Mutt.19990209151824.nox@saturn.hb.north.de> <199902100458.WAA14099@modi.xraylith.wisc.edu> <19990210154630.A5707@saturn.hb.north.de>
- Sender: cygwin-owner@sourceware.cygnus.com
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@sourceware.cygnus.com