X-Git-Url: https://repo.jachan.dev/binutils.git/blobdiff_plain/d8586e35caeb6ffea7058bce844023ec19140cc7..ae115e5114deb0326333c80f7af9e689b2e7d01f:/bfd/i386linux.c diff --git a/bfd/i386linux.c b/bfd/i386linux.c index a40b5c532c..ebc938857d 100644 --- a/bfd/i386linux.c +++ b/bfd/i386linux.c @@ -217,7 +217,7 @@ linux_link_hash_table_create (abfd) struct linux_link_hash_table *ret; ret = ((struct linux_link_hash_table *) - malloc (sizeof (struct linux_link_hash_table))); + bfd_alloc (abfd, sizeof (struct linux_link_hash_table))); if (ret == (struct linux_link_hash_table *) NULL) { bfd_set_error (bfd_error_no_memory); @@ -586,7 +586,7 @@ bfd_linux_size_dynamic_sections (output_bfd, info) bfd_set_error (bfd_error_no_memory); return false; } - memset (s->contents, 0, s->_raw_size); + memset (s->contents, 0, (size_t) s->_raw_size); } return true; @@ -607,7 +607,7 @@ linux_finish_dynamic_link (output_bfd, info) struct fixup *f; unsigned int new_addr; int section_offset; - int fixups_written; + unsigned int fixups_written; if (linux_hash_table (info)->dynobj == NULL) return true;