This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
miscellaneous bfd fixes
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Sun, 8 Dec 2002 14:03:12 +1030
- Subject: miscellaneous bfd fixes
bfd/ChangeLog
* bfd-in.h: Comment typo fix. Formatting.
* bfd-in2.h: Regenerate.
* coff64-rs6000.c (xcoff64_openr_next_archived_file): Warning fix.
* elf32-m68hc12.c (m68hc12_elf_set_mach_from_flags): Prototype.
* elf64-mmix.c (mmix_dump_bpo_gregs): Warning fix.
Index: bfd/bfd-in.h
===================================================================
RCS file: /cvs/src/src/bfd/bfd-in.h,v
retrieving revision 1.54
diff -u -p -r1.54 bfd-in.h
--- bfd/bfd-in.h 30 Nov 2002 08:39:34 -0000 1.54
+++ bfd/bfd-in.h 8 Dec 2002 02:58:08 -0000
@@ -72,11 +72,11 @@ typedef struct _bfd bfd;
/* Boolean type used in bfd. Too many systems define their own
versions of "boolean" for us to safely typedef a "boolean" of
- our own. Using an enum for "bfd_boolean" has it's own set of
+ our own. Using an enum for "bfd_boolean" has its own set of
problems, with strange looking casts required to avoid warnings
on some older compilers. Thus we just use an int.
- General rule: functions which are bfd_boolean return TRUE on
+ General rule: Functions which are bfd_boolean return TRUE on
success and FALSE on failure (unless they're a predicate). */
typedef int bfd_boolean;
@@ -535,48 +535,48 @@ extern bfd_boolean bfd_record_phdr
/* Byte swapping routines. */
-bfd_vma bfd_getb64
+bfd_vma bfd_getb64
PARAMS ((const unsigned char *));
-bfd_vma bfd_getl64
+bfd_vma bfd_getl64
PARAMS ((const unsigned char *));
-bfd_signed_vma bfd_getb_signed_64
+bfd_signed_vma bfd_getb_signed_64
PARAMS ((const unsigned char *));
-bfd_signed_vma bfd_getl_signed_64
+bfd_signed_vma bfd_getl_signed_64
PARAMS ((const unsigned char *));
-bfd_vma bfd_getb32
+bfd_vma bfd_getb32
PARAMS ((const unsigned char *));
-bfd_vma bfd_getl32
+bfd_vma bfd_getl32
PARAMS ((const unsigned char *));
-bfd_signed_vma bfd_getb_signed_32
+bfd_signed_vma bfd_getb_signed_32
PARAMS ((const unsigned char *));
-bfd_signed_vma bfd_getl_signed_32
+bfd_signed_vma bfd_getl_signed_32
PARAMS ((const unsigned char *));
-bfd_vma bfd_getb16
+bfd_vma bfd_getb16
PARAMS ((const unsigned char *));
-bfd_vma bfd_getl16
+bfd_vma bfd_getl16
PARAMS ((const unsigned char *));
-bfd_signed_vma bfd_getb_signed_16
+bfd_signed_vma bfd_getb_signed_16
PARAMS ((const unsigned char *));
-bfd_signed_vma bfd_getl_signed_16
+bfd_signed_vma bfd_getl_signed_16
PARAMS ((const unsigned char *));
-void bfd_putb64
+void bfd_putb64
PARAMS ((bfd_vma, unsigned char *));
-void bfd_putl64
+void bfd_putl64
PARAMS ((bfd_vma, unsigned char *));
-void bfd_putb32
+void bfd_putb32
PARAMS ((bfd_vma, unsigned char *));
-void bfd_putl32
+void bfd_putl32
PARAMS ((bfd_vma, unsigned char *));
-void bfd_putb16
+void bfd_putb16
PARAMS ((bfd_vma, unsigned char *));
-void bfd_putl16
+void bfd_putl16
PARAMS ((bfd_vma, unsigned char *));
/* Byte swapping routines which take size and endiannes as arguments. */
-bfd_vma bfd_get_bits
+bfd_vma bfd_get_bits
PARAMS ((bfd_byte *, int, bfd_boolean));
-void bfd_put_bits
+void bfd_put_bits
PARAMS ((bfd_vma, bfd_byte *, int, bfd_boolean));
/* Externally visible ECOFF routines. */
@@ -620,7 +620,7 @@ extern bfd_boolean bfd_ecoff_debug_exter
const struct ecoff_debug_swap *swap,
bfd_boolean relocateable,
bfd_boolean (*get_extr) (struct symbol_cache_entry *,
- struct ecoff_extr *),
+ struct ecoff_extr *),
void (*set_index) (struct symbol_cache_entry *,
bfd_size_type)));
extern bfd_boolean bfd_ecoff_debug_one_external
Index: bfd/coff64-rs6000.c
===================================================================
RCS file: /cvs/src/src/bfd/coff64-rs6000.c,v
retrieving revision 1.42
diff -u -p -r1.42 coff64-rs6000.c
--- bfd/coff64-rs6000.c 30 Nov 2002 08:39:36 -0000 1.42
+++ bfd/coff64-rs6000.c 8 Dec 2002 02:58:11 -0000
@@ -2019,7 +2019,7 @@ xcoff64_openr_next_archived_file (archiv
bfd *archive;
bfd *last_file;
{
- file_ptr filestart;
+ bfd_vma filestart;
if ((xcoff_ardata (archive) == NULL)
|| ! xcoff_big_format_p (archive))
@@ -2048,7 +2048,7 @@ xcoff64_openr_next_archived_file (archiv
return NULL;
}
- return _bfd_get_elt_at_filepos (archive, filestart);
+ return _bfd_get_elt_at_filepos (archive, (file_ptr) filestart);
}
/* We can't use the usual coff_sizeof_headers routine, because AIX
Index: bfd/elf32-m68hc12.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m68hc12.c,v
retrieving revision 1.12
diff -u -p -r1.12 elf32-m68hc12.c
--- bfd/elf32-m68hc12.c 1 Dec 2002 12:18:29 -0000 1.12
+++ bfd/elf32-m68hc12.c 8 Dec 2002 02:58:12 -0000
@@ -47,6 +47,8 @@ static bfd_boolean elf32_m68hc11_gc_swee
PARAMS ((bfd *, struct bfd_link_info *, asection *,
const Elf_Internal_Rela *));
+static bfd_boolean m68hc12_elf_set_mach_from_flags PARAMS ((bfd *));
+
bfd_boolean _bfd_m68hc12_elf_merge_private_bfd_data PARAMS ((bfd *, bfd *));
bfd_boolean _bfd_m68hc12_elf_set_private_flags PARAMS ((bfd *, flagword));
bfd_boolean _bfd_m68hc12_elf_print_private_bfd_data PARAMS ((bfd *, PTR));
Index: bfd/elf64-mmix.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-mmix.c,v
retrieving revision 1.20
diff -u -p -r1.20 elf64-mmix.c
--- bfd/elf64-mmix.c 30 Nov 2002 08:39:38 -0000 1.20
+++ bfd/elf64-mmix.c 8 Dec 2002 02:58:14 -0000
@@ -2281,8 +2281,8 @@ mmix_dump_bpo_gregs (link_info, pf)
for (i = 0; i < gregdata->n_max_bpo_relocs; i++)
(*pf) ("%4u (%4u)/%4u#%u: 0x%08lx%08lx r: %3u o: %3u\n",
i,
- gregdata->bpo_reloc_indexes != NULL
- ? gregdata->bpo_reloc_indexes[i] : -1,
+ (gregdata->bpo_reloc_indexes != NULL
+ ? gregdata->bpo_reloc_indexes[i] : (size_t) -1),
gregdata->reloc_request[i].bpo_reloc_no,
gregdata->reloc_request[i].valid,
--
Alan Modra
IBM OzLabs - Linux Technology Centre