* elf-bfd.h (struct bfd_elf_section_data): Add "group" and
[deliverable/binutils-gdb.git] / bfd / elfcode.h
index 3a76f1a2678f08977418b295cb21705777695091..d6342195099bbafca7d5037822e1b26c4beadcd6 100644 (file)
@@ -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;
        }
This page took 0.023478 seconds and 4 git commands to generate.