aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-coff.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2005-03-27 17:53:20 +0000
committerIan Lance Taylor <ian@airs.com>2005-03-27 17:53:20 +0000
commit161840f9f66212d4205d539bdd0ef4d43a32da3d (patch)
tree9230996cebddd582c29dfc85c6e0b986a757bb92 /gas/config/obj-coff.c
parent9334f9c6cd576128ec4fc891b5fcf267a7fca7fb (diff)
downloadgdb-161840f9f66212d4205d539bdd0ef4d43a32da3d.zip
gdb-161840f9f66212d4205d539bdd0ef4d43a32da3d.tar.gz
gdb-161840f9f66212d4205d539bdd0ef4d43a32da3d.tar.bz2
* config/obj-coff.c (coff_frob_symbol): When crashing because of a
bad C_EFCN symbol, print its name.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r--gas/config/obj-coff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index dc03b62..922caed 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -1301,7 +1301,8 @@ coff_frob_symbol (symbolS *symp, int *punt)
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)));