diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-03 23:47:21 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-03 23:47:21 +0000 |
commit | 85b25082b122abd38fbdf46167c1df2178c25633 (patch) | |
tree | 71cad4d2d8b2fdbc492dce00746e79cefb1e3666 /bfd/aoutx.h | |
parent | 1017147e448b2b9eced8c87ca38561e9834ba9a3 (diff) | |
download | binutils-redhat-85b25082b122abd38fbdf46167c1df2178c25633.tar.gz |
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.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 7ca221ecd6..ec0bdf0326 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) |