aboutsummaryrefslogtreecommitdiff
path: root/bfd/peicode.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/peicode.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/peicode.h')
-rw-r--r--bfd/peicode.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h
index 1797e80..3b8091e 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -535,6 +535,12 @@ 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);
+ in->x_scn.x_checksum = bfd_h_get_32 (abfd,
+ (bfd_byte *) ext->x_scn.x_checksum);
+ in->x_scn.x_associated =
+ bfd_h_get_16 (abfd, (bfd_byte *) ext->x_scn.x_associated);
+ in->x_scn.x_comdat = bfd_h_get_8 (abfd,
+ (bfd_byte *) ext->x_scn.x_comdat);
return;
}
break;
@@ -615,6 +621,12 @@ coff_swap_aux_out (abfd, inp, type, class, indx, numaux, extp)
PUT_SCN_SCNLEN(abfd, in->x_scn.x_scnlen, ext);
PUT_SCN_NRELOC(abfd, in->x_scn.x_nreloc, ext);
PUT_SCN_NLINNO(abfd, in->x_scn.x_nlinno, ext);
+ bfd_h_put_32 (abfd, in->x_scn.x_checksum,
+ (bfd_byte *) ext->x_scn.x_checksum);
+ bfd_h_put_16 (abfd, in->x_scn.x_associated,
+ (bfd_byte *) ext->x_scn.x_associated);
+ bfd_h_put_8 (abfd, in->x_scn.x_comdat,
+ (bfd_byte *) ext->x_scn.x_comdat);
return sizeof (AUXENT);
}
break;