aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-10-09 06:05:17 +0000
committerAlan Modra <amodra@gmail.com>2001-10-09 06:05:17 +0000
commitdbb410c3e20602a6d4be32a6833a9b7f5b0f1ae9 (patch)
tree235b9a47bbaa9e8704d51a4d32cd09ad5b2cfa74 /bfd/elfcode.h
parentddb26835359dd46ef225f8e8bb475f68db3ac452 (diff)
downloadfsf-binutils-gdb-dbb410c3e20602a6d4be32a6833a9b7f5b0f1ae9.zip
fsf-binutils-gdb-dbb410c3e20602a6d4be32a6833a9b7f5b0f1ae9.tar.gz
fsf-binutils-gdb-dbb410c3e20602a6d4be32a6833a9b7f5b0f1ae9.tar.bz2
* elf-bfd.h (struct bfd_elf_section_data): Add "group" and
"next_in_group". Fix gp and gp_size comments. * elf.c (union elf_internal_group): New. (setup_group): New function. (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP. Call setup_group for SHF_GROUP sections. (bfd_section_from_shdr): Build a BFD section for SHT_GROUP. (elf_fake_sections): Set header type for SEC_GROUP, and header flags for sections in a group. (set_group_contents): New function. (_bfd_elf_compute_section_file_positions): Call it. (assign_section_numbers): Set sh_link for SHT_GROUP. * elflink.h (gc_mark_hook): Handle section groups. * elfxx-target.h: Add SEC_GROUP to applicable_flags. * section.c (SEC_GROUP): Define. (struct sec): Comment fixes. * bfd-in2.h: Regenerate. * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression out of function args. (_bfd_elf_canonicalize_reloc): Similarly. (_bfd_elf_get_symtab): Here too. (_bfd_elf_canonicalize_dynamic_symtab): And here. * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for bfd_bread, and remove unnecessary cast.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h7
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;
}