* PATCH COMMITTED: Print name of bad C_EFCN symbol
@ 2005-03-28 5:52 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2005-03-28 5:52 UTC (permalink / raw)
To: binutils
Due to gcc pr 9963 (http://gcc.gnu.org/PR9963) gcc will sometimes
generate bad COFF debugging information for functions with a forward
reference. Pending a compiler fix, it's nice if the assembler can
give a slightly more useful error message. I just committed a patch
to do this--the error message is only slightly more useful, but at
least you know which function is causing the problem.
Ian
2005-03-27 Ian Lance Taylor <ian@airs.com>
* config/obj-coff.c (coff_frob_symbol): When crashing because of a
bad C_EFCN symbol, print its name.
Index: config/obj-coff.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-coff.c,v
retrieving revision 1.80
diff -u -p -r1.80 obj-coff.c
--- config/obj-coff.c 16 Mar 2005 14:56:59 -0000 1.80
+++ config/obj-coff.c 27 Mar 2005 17:53:01 -0000
@@ -1301,7 +1301,8 @@ coff_frob_symbol (symbolS *symp, int *pu
if (S_GET_STORAGE_CLASS (symp) == C_EFCN)
{
if (coff_last_function == 0)
- as_fatal (_("C_EFCN symbol out of scope"));
+ as_fatal (_("C_EFCN symbol for %s out of scope"),
+ S_GET_NAME (symp));
SA_SET_SYM_FSIZE (coff_last_function,
(long) (S_GET_VALUE (symp)
- S_GET_VALUE (coff_last_function)));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-27 17:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-28 5:52 PATCH COMMITTED: Print name of bad C_EFCN symbol 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).