aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/mach-o.c2
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/obj-macho.c2
4 files changed, 13 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ad85fca..5efae57 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2012-02-02 Tristan Gingold <gingold@adacore.com>
+ * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
+ variable warning.
+
+2012-02-02 Tristan Gingold <gingold@adacore.com>
+
* archive.c (bfd_slurp_armap): Fix thinko in cast.
2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index a13ac4e..5386b1a 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -2522,6 +2522,8 @@ bfd_mach_o_read_header (bfd *abfd, bfd_mach_o_header *header)
if (mach_o_wide_p (header))
header->reserved = (*get32) (raw.reserved);
+ else
+ header->reserved = 0;
return TRUE;
}
diff --git a/gas/ChangeLog b/gas/ChangeLog
index f37e6b0..143667a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-02 Tristan Gingold <gingold@adacore.com>
+
+ * config/obj-macho.c (obj_mach_o_zerofill): Silent
+ uninitialized variable warning.
+
2012-02-02 Nick Clifton <nickc@redhat.com>
PR gas/13224
diff --git a/gas/config/obj-macho.c b/gas/config/obj-macho.c
index f0cb43e..f4706ab 100644
--- a/gas/config/obj-macho.c
+++ b/gas/config/obj-macho.c
@@ -434,7 +434,7 @@ obj_mach_o_zerofill (int ignore ATTRIBUTE_UNUSED)
symbolS *sym = NULL;
unsigned int align = 0;
unsigned int specified_mask = 0;
- offsetT size;
+ offsetT size = 0;
#ifdef md_flush_pending_output
md_flush_pending_output ();