PE/COFF regression in base of code and data calculation
authorToni Spets <toni.spets@iki.fi>
Tue, 29 Mar 2016 03:55:23 +0000 (14:25 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 29 Mar 2016 05:33:07 +0000 (16:03 +1030)
PR 19878
* coffcode.h (coff_write_object_contents): Revert accidental
2014-11-10 change.

bfd/ChangeLog
bfd/coffcode.h

index b57cfa550067fd4aa8a1cf9d9e660433ea3829f9..54dc971eb404d0197c94502a12b2f5da853030c6 100644 (file)
@@ -1,3 +1,9 @@
+2016-03-29  Toni Spets  <toni.spets@iki.fi>
+
+       PR 19878
+       * coffcode.h (coff_write_object_contents): Revert accidental
+       2014-11-10 change.
+
 2016-03-22  Alan Modra  <amodra@gmail.com>
 
        PR 19850
index caceab6e68eaf73ec9b6d33c2a507c6325758bcc..798f7f7f0a5d4383b6f59c2d163ec7f2b84b493d 100644 (file)
@@ -4076,6 +4076,8 @@ coff_write_object_contents (bfd * abfd)
     internal_f.f_flags |= F_DYNLOAD;
 #endif
 
+  memset (&internal_a, 0, sizeof internal_a);
+
   /* Set up architecture-dependent stuff.  */
   {
     unsigned int magic = 0;