* Patch for obj-coff.c
@ 1999-07-30 9:50 Mark E.
1999-07-30 10:07 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Mark E. @ 1999-07-30 9:50 UTC (permalink / raw)
To: binutils, Ian Lance Taylor
Hello Ian,
This patch seems to fix the debugging problem under BFD assember caused by not
creating an endndx AUX record. I believe the Win32 ports use stabs by default, so
it's no wonder no one ever noticed.
1999-07-30 Mark Elbrecht <snowball3@bigfoot.com>
* config/obj-coff.c (coff_frob_symbol): Permit set_end to be set for C_EFCN symbols.
*** config/obj-coff.c.orig Sat Jun 26 15:35:44 1999
--- config/obj-coff.c Fri Jul 30 12:43:22 1999
*************** coff_frob_symbol (symp, punt)
*** 1092,1098 ****
}
if (next_set_end != NULL
! && ! *punt)
set_end = next_set_end;
if (! *punt
--- 1092,1098 ----
}
if (next_set_end != NULL
! && ((! *punt) || (S_GET_STORAGE_CLASS (symp) == C_EFCN)))
set_end = next_set_end;
if (! *punt
---
Mark Elbrecht, snowball3@bigfoot.com
http://snowball.frogspace.net/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Patch for obj-coff.c
1999-07-30 9:50 Patch for obj-coff.c Mark E.
@ 1999-07-30 10:07 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 1999-07-30 10:07 UTC (permalink / raw)
To: snowball3; +Cc: binutils
From: "Mark E." <snowball3@bigfoot.com>
Date: Fri, 30 Jul 1999 12:50:19 -0400
This patch seems to fix the debugging problem under BFD assember caused by not
creating an endndx AUX record. I believe the Win32 ports use stabs by default, so
it's no wonder no one ever noticed.
Thanks for tracking this down.
Looking at this code, I don't why see it needs to ever check *punt.
Could you try out this patch and see if you ever get the warning?
Ian
--- config/obj-coff.c.~4~ Sat Jun 26 22:32:49 1999
+++ config/obj-coff.c Fri Jul 30 13:02:26 1999
@@ -1091,9 +1091,13 @@ coff_frob_symbol (symp, punt)
set_end = NULL;
}
- if (next_set_end != NULL
- && ! *punt)
- set_end = next_set_end;
+ if (next_set_end != NULL)
+ {
+ if (set_end != NULL)
+ as_warn ("Warning: internal error: forgetting to set endndx of %s",
+ S_GET_NAME (set_end));
+ set_end = next_set_end;
+ }
if (! *punt
&& S_GET_STORAGE_CLASS (symp) == C_FCN
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-07-30 10:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-30 9:50 Patch for obj-coff.c Mark E.
1999-07-30 10:07 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).