* peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
[deliverable/binutils-gdb.git] / bfd / coffswap.h
index 44a1702b75ba927eade22e0ee0cab3879d12eee4..10586c0c6d744e774a45b318a56993d0b4ef75f7 100644 (file)
@@ -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;
This page took 0.025187 seconds and 4 git commands to generate.