From ae115e5114deb0326333c80f7af9e689b2e7d01f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 12 Sep 1995 16:23:25 +0000 Subject: Extensive minor changes to avoid various gcc warnings. Also: * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o. * archures.c (bfd_arch_info_type): Change mach field from long to unsigned long. (bfd_lookup_arch): Change machine parameter from long to unsigned long. --- bfd/i386linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bfd/i386linux.c') diff --git a/bfd/i386linux.c b/bfd/i386linux.c index a40b5c5..ebc9388 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; -- cgit v1.1