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 b57cfa5..54dc971 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 caceab6..798f7f7 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;