aboutsummaryrefslogtreecommitdiff
path: root/bfd/aoutx.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-07-13 18:14:45 +0000
committerIan Lance Taylor <ian@airs.com>1995-07-13 18:14:45 +0000
commit3fe22b980bdb54195528c580ac5267e29d27914d (patch)
treee5c2e61afe50c2863cf702611b09f60f05ea890f /bfd/aoutx.h
parent047e0fcd8e295567d47feb61488fbeb57dbf852d (diff)
downloadgdb-3fe22b980bdb54195528c580ac5267e29d27914d.zip
gdb-3fe22b980bdb54195528c580ac5267e29d27914d.tar.gz
gdb-3fe22b980bdb54195528c580ac5267e29d27914d.tar.bz2
* aoutx.h (NAME(aout,slurp_reloc_table)): Cast argument to size_t
for malloc. * coff-mips.c (mips_relocate_section): Likewise, for memmove. (mips_relax_section): Likewise, for malloc. * cofflink.c (process_embedded_commands): Likewise. (_bfd_coff_final_link): Likewise. * ecoff.c (_bfd_ecoff_write_object_contents): Likewise. (ecoff_final_link_debug_accumulate): Likewise. (ecoff_indirect_link_order): Likewise, for memcpy and malloc. (ecoff_reloc_link_order): Likewise, for malloc. * ecofflink.c (ecoff_align_debug): Likewise, for memset. (ecoff_write_symhdr): Likewise, for malloc. * elf32-hppa.c (elf32_hppa_read_symext_info): Likewise. * elf.c (assign_file_positions_except_relocs): Likewise, for qsort. * elf32-mips.c (mips_elf_read_ecoff_info): Likewise, for malloc. * elfcode.h (elf_slurp_reloc_table): Likewise. * elfcore.h (elf_corefile_note): Likewise. * elflink.h (elf_link_add_object_symbols): Likewise. (elf_link_read_relocs): Likewise. (NAME(bfd_elf,size_dynamic_sections)): Likewise, for memset. * i386linux.c (bfd_linux_size_dynamic_sections): Likewise. * ieee.c (do_with_relocs): Likewise. * linker.c (default_indirect_link_order): Likewise, for malloc. * nlmcode.h (nlm_object_p): Likewise. (nlm_write_object_contents): Likewise. * oasys.c (oasys_set_section_contents): Likewise, for memcpy. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise, for malloc. * section.c (bfd_get_section_contents): Likewise, for memcpy. * srec.c (srec_get_section_contents): Likewise. (srec_set_section_contents): Likewise. * sunos.c (bfd_sunos_size_dynamic_sections): Likewise, for realloc and memset. (sunos_scan_relocs): Likewise, for malloc. (sunos_scan_dynamic_symbol): Likewise, for realloc. * syms.c (_bfd_generic_read_minisymbols): Likewise, for malloc. * versados.c (versados_get_section_contents): Likewise, for memcpy.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r--bfd/aoutx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index 8d2385e..506d5ee 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -2287,7 +2287,7 @@ NAME(aout,slurp_reloc_table) (abfd, asect, symbols)
}
memset (reloc_cache, 0, count * sizeof (arelent));
- relocs = malloc (reloc_size);
+ relocs = malloc ((size_t) reloc_size);
if (relocs == NULL && reloc_size != 0)
{
free (reloc_cache);