diff options
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 3a76f1a..d634219 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -1084,10 +1084,7 @@ elf_slurp_symbol_table (abfd, symptrs, dynamic) if (x_symp == NULL && symcount != 0) goto error_return; - if (bfd_bread ((PTR) x_symp, - (bfd_size_type) (symcount * sizeof (Elf_External_Sym)), - abfd) - != symcount * sizeof (Elf_External_Sym)) + if (bfd_bread ((PTR) x_symp, amt, abfd) != amt) goto error_return; /* Read the raw ELF version symbol information. */ @@ -1115,7 +1112,7 @@ elf_slurp_symbol_table (abfd, symptrs, dynamic) if (x_versymp == NULL && verhdr->sh_size != 0) goto error_return; - if (bfd_bread ((PTR) x_versymp, (bfd_size_type) verhdr->sh_size, abfd) + if (bfd_bread ((PTR) x_versymp, verhdr->sh_size, abfd) != verhdr->sh_size) goto error_return; } |