* 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 a594663..4fa9cb0 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 1faa423..fe72cc3 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,