From 26337762eadb8b1fbe1dd44fb2751630954b03a2 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 10 Aug 2001 06:00:53 +0000 Subject: * libxcoff.h (struct xcoff_backend_data_rec): Constify src param of _xcoff_swap_ld*. * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external param to agree with libxcoff.h. (xcoff_swap_ldhdr_out): Likewise. (xcoff_swap_ldsym_in): Likewise. (xcoff_swap_ldsym_out): Likewise. (xcoff_swap_ldrel_in): Likewise. (xcoff_swap_ldrel_out): Likewise. (xcoff_create_csect_from_smclas): Likewise. * coff64-rs6000.c: Add missing prototypes. (xcoff64_swap_ldhdr_in): Modify type of external param to agree with libxcoff.h. (xcoff64_swap_ldhdr_out): Likewise. (xcoff64_swap_ldsym_in): Likewise. (xcoff64_swap_ldsym_out): Likewise. (xcoff64_swap_ldrel_in): Likewise. (xcoff64_swap_ldrel_out): Likewise. (xcoff64_ppc_relocate_section): Make static. (xcoff64_slurp_armap): Likewise. (xcoff64_archive_p): Likewise. (xcoff64_openr_next_archived_file): Likewise. (xcoff64_sizeof_headers): Likewise. (xcoff64_is_lineno_count_overflow): Likewise. (xcoff64_is_reloc_count_overflow): Likewise. (xcoff64_loader_symbol_offset): Likewise. (xcoff64_loader_reloc_offset): Likewise. * elf64-gen.c: Add missing prototypes. --- bfd/libxcoff.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bfd/libxcoff.h') diff --git a/bfd/libxcoff.h b/bfd/libxcoff.h index a755665f04..83a65924c6 100644 --- a/bfd/libxcoff.h +++ b/bfd/libxcoff.h @@ -42,12 +42,12 @@ struct xcoff_backend_data_rec long _xcoff_machine; /* function pointers to xcoff specific swap routines */ - void (* _xcoff_swap_ldhdr_in)(bfd *, PTR, struct internal_ldhdr *); - void (* _xcoff_swap_ldhdr_out)(bfd *, struct internal_ldhdr *, PTR); - void (* _xcoff_swap_ldsym_in)(bfd *, PTR, struct internal_ldsym *); - void (* _xcoff_swap_ldsym_out)(bfd *, struct internal_ldsym *, PTR); - void (* _xcoff_swap_ldrel_in)(bfd *, PTR, struct internal_ldrel *); - void (* _xcoff_swap_ldrel_out)(bfd *, struct internal_ldrel *, PTR); + void (* _xcoff_swap_ldhdr_in)(bfd *, const PTR, struct internal_ldhdr *); + void (* _xcoff_swap_ldhdr_out)(bfd *, const struct internal_ldhdr *, PTR); + void (* _xcoff_swap_ldsym_in)(bfd *, const PTR, struct internal_ldsym *); + void (* _xcoff_swap_ldsym_out)(bfd *, const struct internal_ldsym *, PTR); + void (* _xcoff_swap_ldrel_in)(bfd *, const PTR, struct internal_ldrel *); + void (* _xcoff_swap_ldrel_out)(bfd *, const struct internal_ldrel *, PTR); /* size of the the external struct */ unsigned int _xcoff_ldhdrsz; -- cgit v1.2.1