aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffswap.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-03-27 22:53:16 +0000
committerIan Lance Taylor <ian@airs.com>1996-03-27 22:53:16 +0000
commit8230f31c92c3dc4c12a9b6531e50c82284455f95 (patch)
tree909aa772eb5832c98f0b85b0563d489b92332909 /bfd/coffswap.h
parent563c235748386d8b6015b7c66af57e1749958a63 (diff)
downloadgdb-8230f31c92c3dc4c12a9b6531e50c82284455f95.zip
gdb-8230f31c92c3dc4c12a9b6531e50c82284455f95.tar.gz
gdb-8230f31c92c3dc4c12a9b6531e50c82284455f95.tar.bz2
* peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
(coff_swap_aux_out): Swap out extra PE x_scn fields. * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields. * coffgen.c (coff_print_symbol): If any of the extra PE x_scn fields is non-zero, print them.
Diffstat (limited to 'bfd/coffswap.h')
-rw-r--r--bfd/coffswap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/coffswap.h b/bfd/coffswap.h
index 44a1702..10586c0 100644
--- a/bfd/coffswap.h
+++ b/bfd/coffswap.h
@@ -397,6 +397,13 @@ coff_swap_aux_in (abfd, ext1, type, class, indx, numaux, in1)
in->x_scn.x_scnlen = GET_SCN_SCNLEN(abfd, ext);
in->x_scn.x_nreloc = GET_SCN_NRELOC(abfd, ext);
in->x_scn.x_nlinno = GET_SCN_NLINNO(abfd, ext);
+
+ /* PE defines some extra fields; we zero them out for
+ safety. */
+ in->x_scn.x_checksum = 0;
+ in->x_scn.x_associated = 0;
+ in->x_scn.x_comdat = 0;
+
return;
}
break;