From f6af82bd4470673eef9562d4ed3a2717c1d749ab Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 21 Feb 2000 12:01:27 +0000 Subject: This lot mainly cleans up `comparison between signed and unsigned' gcc warnings. One usused var, and a macro parenthesis fix too. Also check input sections are elf when doing gc in elflink.h. --- bfd/bfd-in2.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bfd/bfd-in2.h') diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index d7b52db..99bc67f 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1219,9 +1219,11 @@ extern const struct symbol_cache_entry * const bfd_com_symbol; extern const struct symbol_cache_entry * const bfd_und_symbol; extern const struct symbol_cache_entry * const bfd_ind_symbol; #define bfd_get_section_size_before_reloc(section) \ - (section->reloc_done ? (abort(),1): (section)->_raw_size) + ((section)->reloc_done ? (abort (), (bfd_size_type) 1) \ + : (section)->_raw_size) #define bfd_get_section_size_after_reloc(section) \ - ((section->reloc_done) ? (section)->_cooked_size: (abort(),1)) + ((section)->reloc_done ? (section)->_cooked_size \ + : (abort (), (bfd_size_type) 1)) asection * bfd_get_section_by_name PARAMS ((bfd *abfd, CONST char *name)); @@ -1467,10 +1469,10 @@ const char * bfd_printable_arch_mach PARAMS ((enum bfd_architecture arch, unsigned long machine)); -int +unsigned int bfd_octets_per_byte PARAMS ((bfd *abfd)); -int +unsigned int bfd_arch_mach_octets_per_byte PARAMS ((enum bfd_architecture arch, unsigned long machine)); -- cgit v1.1