aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-03 23:47:21 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-03 23:47:21 +0000
commitc38eb2a67d19e81f2bb2c639adf64e8820dc1085 (patch)
treee416bad05eddd1610ce404e23064cf59641a7e2a
parent8ecc1f20271e47925e0c8e4eb1452d1cea8aa992 (diff)
downloadgdb-c38eb2a67d19e81f2bb2c639adf64e8820dc1085.zip
gdb-c38eb2a67d19e81f2bb2c639adf64e8820dc1085.tar.gz
gdb-c38eb2a67d19e81f2bb2c639adf64e8820dc1085.tar.bz2
2011-03-03 Michael Snyder <msnyder@vmware.com>
* aoutx.h (aout_final_link): Use sizeof int not sizeof int*. (aout_link_write_other_symbol): Missing break statement.
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/aoutx.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a42fa60..d6e022e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,8 @@
2011-03-03 Michael Snyder <msnyder@vmware.com>
+ * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
+ (aout_link_write_other_symbol): Missing break statement.
+
* dwarf2.c (scan_unit_for_symbols): Stop memory leak.
* archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index 7ca221e..ec0bdf0 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -3637,6 +3637,7 @@ aout_link_write_other_symbol (struct aout_link_hash_entry *h, void * data)
case bfd_link_hash_undefweak:
type = N_WEAKU;
val = 0;
+ break;
case bfd_link_hash_indirect:
/* We ignore these symbols, since the indirected symbol is
already in the hash table. */
@@ -5448,7 +5449,7 @@ NAME (aout, final_link) (bfd *abfd,
/* Allocate buffers to hold section contents and relocs. */
aout_info.contents = (bfd_byte *) bfd_malloc (max_contents_size);
aout_info.relocs = bfd_malloc (max_relocs_size);
- aout_info.symbol_map = (int *) bfd_malloc (max_sym_count * sizeof (int *));
+ aout_info.symbol_map = (int *) bfd_malloc (max_sym_count * sizeof (int));
aout_info.output_syms = (struct external_nlist *)
bfd_malloc ((max_sym_count + 1) * sizeof (struct external_nlist));
if ((aout_info.contents == NULL && max_contents_size != 0)