* config/obj-coff.c (coff_frob_symbol): When crashing because of a
authorIan Lance Taylor <ian@airs.com>
Sun, 27 Mar 2005 17:53:20 +0000 (17:53 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 27 Mar 2005 17:53:20 +0000 (17:53 +0000)
bad C_EFCN symbol, print its name.

gas/ChangeLog
gas/config/obj-coff.c

index 4ef1d056d2ae47e127886f8b2e757885112d6d6b..d8d85e20d31bd80689928c750622afabbeb189b7 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2005-03-25  Bob Wilson  <bob.wilson@acm.org>
 
        * config/tc-xtensa.c (use_longcalls): Delete.
index dc03b625e911875e20f362437e8dbeaddbcfc9d3..922caed68d9d0dbe91b8c32412376bbe1dcea86d 100644 (file)
@@ -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)));