This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb/binutils-2_26-branch] PE/COFF regression in base of code and data calculation
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 29 Mar 2016 06:59:01 -0000
- Subject: [binutils-gdb/binutils-2_26-branch] PE/COFF regression in base of code and data calculation
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cf3db3d2451c68875f7a9f5b51e3d5ea3465aaa6
commit cf3db3d2451c68875f7a9f5b51e3d5ea3465aaa6
Author: Toni Spets <toni.spets@iki.fi>
Date: Tue Mar 29 14:25:23 2016 +1030
PE/COFF regression in base of code and data calculation
PR 19878
* coffcode.h (coff_write_object_contents): Revert accidental
2014-11-10 change.
Diff:
---
bfd/ChangeLog | 6 ++++++
bfd/coffcode.h | 2 ++
2 files changed, 8 insertions(+)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4741b19..5c0e709 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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-17 H.J. Lu <hongjiu.lu@intel.com>
Backport from master
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 2499885..97db5f7 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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;