aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-09-06 18:30:06 +0000
committerKen Raeburn <raeburn@cygnus>1994-09-06 18:30:06 +0000
commitde733a0edf37f2e2f4a7733da66b55a07ef1f804 (patch)
tree43c5d63ca55bd146a2b7e9899bcf1f81ccc2c6cf /bfd/coffgen.c
parent358710a7eb5e1e18c87bc670e5996ec92b2c202b (diff)
downloadgdb-de733a0edf37f2e2f4a7733da66b55a07ef1f804.zip
gdb-de733a0edf37f2e2f4a7733da66b55a07ef1f804.tar.gz
gdb-de733a0edf37f2e2f4a7733da66b55a07ef1f804.tar.bz2
* coffgen.c (coff_print_symbol, case bfd_symbol_print_all): Check for section
symbol, and print its aux fields with appropriate labels.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r--bfd/coffgen.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 1faa423..fe72cc3 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -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,