1999-09-11 Donn Terry <donn@interix.com>
authorIan Lance Taylor <ian@airs.com>
Sat, 11 Sep 1999 15:16:14 +0000 (15:16 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 11 Sep 1999 15:16:14 +0000 (15:16 +0000)
* coffgen.c (coff_print_symbol): Fix printing of aux record for
function symbols.

bfd/ChangeLog
bfd/coffgen.c

index 143fbc00a98681da6c1189458df4e5e289e8fc47..dbc93dae71aef7f130abc350bf2a9be85dadc169 100644 (file)
@@ -1,5 +1,8 @@
 1999-09-11  Donn Terry  <donn@interix.com>
 
+       * coffgen.c (coff_print_symbol): Fix printing of aux record for
+       function symbols.
+
        * syms.c (BSF_DEBUGGING_RELOC): Define.
        * coffgen.c (fixup_symbol_value): Relocate a symbol which has
        BSF_DEBUGGING_RELOC set.
index f090f103db41dd73cf645783c55797622d1db286..547a15f883cadc79e4303d60c9f2676dfc600f86 100644 (file)
@@ -2066,8 +2066,23 @@ coff_print_symbol (abfd, filep, symbol, how)
                                 auxp->u.auxent.x_scn.x_comdat);
                      break;
                    }
+                   /* else fall through */
+               case C_EXT:
+                 if (ISFCN (combined->u.syment.n_type))
+                   {
+                     fprintf (file,
+                              _("AUX tagndx %ld ttlsiz 0x%lx lnnos %ld next %ld"),
+                              tagndx,
+                              auxp->u.auxent.x_sym.x_misc.x_fsize,
+                              auxp->u.auxent.x_sym.x_fcnary.x_fcn.x_lnnoptr,
+                              (auxp->fix_end
+                               ? ((long)
+                                  (auxp->u.auxent.x_sym.x_fcnary.x_fcn.x_endndx.p
+                                   - root))
+                               : auxp->u.auxent.x_sym.x_fcnary.x_fcn.x_endndx.l));
+                     break;
+                   }
                  /* else fall through */
-
                default:
                  fprintf (file, "AUX lnno %d size 0x%x tagndx %ld",
                           auxp->u.auxent.x_sym.x_misc.x_lnsz.x_lnno,