From: Ian Lance Taylor <ian@airs.com>
To: binutils@sourceware.org
Subject: PATCH COMMITTED: Print name of bad C_EFCN symbol
Date: Mon, 28 Mar 2005 05:52:00 -0000 [thread overview]
Message-ID: <20050327175458.20748.qmail@gossamer.airs.com> (raw)
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)));
reply other threads:[~2005-03-27 17:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050327175458.20748.qmail@gossamer.airs.com \
--to=ian@airs.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).