* coffgen.c (coff_print_symbol, case bfd_symbol_print_all): Check for section
authorKen Raeburn <raeburn@cygnus>
Tue, 6 Sep 1994 18:30:06 +0000 (18:30 +0000)
committerKen Raeburn <raeburn@cygnus>
Tue, 6 Sep 1994 18:30:06 +0000 (18:30 +0000)
symbol, and print its aux fields with appropriate labels.

bfd/ChangeLog
bfd/coffgen.c

index a594663b9d617f96eeca6e7060b2edc0c6c9038e..4fa9cb021a0bbe44cc568831eebb28a116d91fb4 100644 (file)
@@ -1,5 +1,9 @@
 Tue Sep  6 14:00:45 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
 
+       * coffgen.c (coff_print_symbol, case bfd_symbol_print_all): Check
+       for section symbol, and print its aux fields with appropriate
+       labels.
+
        * Makefile.in (ALL_MACHINES): Added cpu-arm.o.
 
 Sun Sep 04 17:58:10 1994  Richard Earnshaw (rwe@pegasus.esprit.ec.org)
index 1faa423218b0c9bc26b1bf5e049e776b5e2f58ee..fe72cc34315e7cc4b4d90d18922579a67cc4d258 100644 (file)
@@ -1557,8 +1557,20 @@ coff_print_symbol (abfd, filep, symbol, how)
                case C_FILE:
                  fprintf (file, "File ");
                  break;
-               default:
 
+               case C_STAT:
+                 if (combined->u.syment.n_type == T_NULL)
+                   /* probably a section symbol? */
+                   {
+                     fprintf (file, "AUX scnlen 0x%lx nreloc %d nlnno %d",
+                              (long) auxp->u.auxent.x_scn.x_scnlen,
+                              auxp->u.auxent.x_scn.x_nreloc,
+                              auxp->u.auxent.x_scn.x_nlinno);
+                     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,
                           auxp->u.auxent.x_sym.x_misc.x_lnsz.x_size,