diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2003-10-04 21:02:53 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2003-10-04 21:02:53 +0000 |
commit | 0a6a3ebe971383afdfca26b4f9a2669bd09770b5 (patch) | |
tree | de8f79a97ac346b4529e5b75547a5416cb71e76e /bfd/elf32-m68hc1x.h | |
parent | 17e58af002ea3495592011fd3dfee63cf999aba5 (diff) | |
download | gdb-0a6a3ebe971383afdfca26b4f9a2669bd09770b5.zip gdb-0a6a3ebe971383afdfca26b4f9a2669bd09770b5.tar.gz gdb-0a6a3ebe971383afdfca26b4f9a2669bd09770b5.tar.bz2 |
* elf32-m68hc1x.c: Update to ISO C90; replace PTR with void*.
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-m68hc1x.h: Likewise.
Diffstat (limited to 'bfd/elf32-m68hc1x.h')
-rw-r--r-- | bfd/elf32-m68hc1x.h | 82 |
1 files changed, 37 insertions, 45 deletions
diff --git a/bfd/elf32-m68hc1x.h b/bfd/elf32-m68hc1x.h index c5e9372..5964023 100644 --- a/bfd/elf32-m68hc1x.h +++ b/bfd/elf32-m68hc1x.h @@ -32,9 +32,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define BFD_M68HC11_BANK_VIRTUAL_NAME "__bank_virtual" /* Set and control ELF flags in ELF header. */ -extern bfd_boolean _bfd_m68hc11_elf_merge_private_bfd_data PARAMS ((bfd*,bfd*)); -extern bfd_boolean _bfd_m68hc11_elf_set_private_flags PARAMS ((bfd*,flagword)); -extern bfd_boolean _bfd_m68hc11_elf_print_private_bfd_data PARAMS ((bfd*,PTR)); +extern bfd_boolean _bfd_m68hc11_elf_merge_private_bfd_data (bfd*,bfd*); +extern bfd_boolean _bfd_m68hc11_elf_set_private_flags (bfd*,flagword); +extern bfd_boolean _bfd_m68hc11_elf_print_private_bfd_data (bfd*, void*); /* This hash entry is used to record a trampoline that must be generated to call a far function using a normal calling convention ('jsr'). @@ -122,8 +122,8 @@ struct m68hc11_elf_link_hash_table /* Small local sym to section mapping cache. */ struct sym_sec_cache sym_sec; - bfd_boolean (* size_one_stub) PARAMS((struct bfd_hash_entry*, PTR)); - bfd_boolean (* build_one_stub) PARAMS((struct bfd_hash_entry*, PTR)); + bfd_boolean (* size_one_stub) PARAMS((struct bfd_hash_entry*, void*)); + bfd_boolean (* build_one_stub) PARAMS((struct bfd_hash_entry*, void*)); }; /* Get the Sparc64 ELF linker hash table from a link_info structure. */ @@ -134,71 +134,63 @@ struct m68hc11_elf_link_hash_table /* Create a 68HC11/68HC12 ELF linker hash table. */ extern struct m68hc11_elf_link_hash_table* m68hc11_elf_hash_table_create - PARAMS ((bfd*)); -extern void m68hc11_elf_bfd_link_hash_table_free - PARAMS ((struct bfd_link_hash_table*)); + (bfd*); +extern void m68hc11_elf_bfd_link_hash_table_free (struct bfd_link_hash_table*); -extern void m68hc11_elf_get_bank_parameters - PARAMS ((struct bfd_link_info*)); +extern void m68hc11_elf_get_bank_parameters (struct bfd_link_info*); /* Return 1 if the address is in banked memory. This can be applied to a virtual address and to a physical address. */ -extern int m68hc11_addr_is_banked - PARAMS ((struct m68hc11_page_info*, bfd_vma)); +extern int m68hc11_addr_is_banked (struct m68hc11_page_info*, bfd_vma); /* Return the physical address seen by the processor, taking into account banked memory. */ -extern bfd_vma m68hc11_phys_addr - PARAMS ((struct m68hc11_page_info*, bfd_vma)); +extern bfd_vma m68hc11_phys_addr (struct m68hc11_page_info*, bfd_vma); /* Return the page number corresponding to an address in banked memory. */ -extern bfd_vma m68hc11_phys_page - PARAMS ((struct m68hc11_page_info*, bfd_vma)); +extern bfd_vma m68hc11_phys_page (struct m68hc11_page_info*, bfd_vma); bfd_reloc_status_type m68hc11_elf_ignore_reloc - PARAMS ((bfd *abfd, arelent *reloc_entry, - asymbol *symbol, PTR data, asection *input_section, - bfd *output_bfd, char **error_message)); + (bfd *abfd, arelent *reloc_entry, + asymbol *symbol, void *data, asection *input_section, + bfd *output_bfd, char **error_message); bfd_reloc_status_type m68hc11_elf_special_reloc - PARAMS ((bfd *abfd, arelent *reloc_entry, - asymbol *symbol, PTR data, asection *input_section, - bfd *output_bfd, char **error_message)); + (bfd *abfd, arelent *reloc_entry, + asymbol *symbol, void *data, asection *input_section, + bfd *output_bfd, char **error_message); /* GC mark and sweep. */ asection *elf32_m68hc11_gc_mark_hook - PARAMS ((asection *sec, struct bfd_link_info *info, - Elf_Internal_Rela *rel, struct elf_link_hash_entry *h, - Elf_Internal_Sym *sym)); + (asection *sec, struct bfd_link_info *info, + Elf_Internal_Rela *rel, struct elf_link_hash_entry *h, + Elf_Internal_Sym *sym); bfd_boolean elf32_m68hc11_gc_sweep_hook - PARAMS ((bfd *abfd, struct bfd_link_info *info, - asection *sec, const Elf_Internal_Rela *relocs)); + (bfd *abfd, struct bfd_link_info *info, + asection *sec, const Elf_Internal_Rela *relocs); bfd_boolean elf32_m68hc11_check_relocs - PARAMS ((bfd * abfd, struct bfd_link_info * info, - asection * sec, const Elf_Internal_Rela * relocs)); + (bfd * abfd, struct bfd_link_info * info, + asection * sec, const Elf_Internal_Rela * relocs); bfd_boolean elf32_m68hc11_relocate_section - PARAMS ((bfd *output_bfd, struct bfd_link_info *info, - bfd *input_bfd, asection *input_section, - bfd_byte *contents, Elf_Internal_Rela *relocs, - Elf_Internal_Sym *local_syms, asection **local_sections)); + (bfd *output_bfd, struct bfd_link_info *info, + bfd *input_bfd, asection *input_section, + bfd_byte *contents, Elf_Internal_Rela *relocs, + Elf_Internal_Sym *local_syms, asection **local_sections); bfd_boolean elf32_m68hc11_add_symbol_hook - PARAMS ((bfd *abfd, struct bfd_link_info *info, - const Elf_Internal_Sym *sym, const char **namep, - flagword *flagsp, asection **secp, - bfd_vma *valp)); + (bfd *abfd, struct bfd_link_info *info, + const Elf_Internal_Sym *sym, const char **namep, + flagword *flagsp, asection **secp, + bfd_vma *valp); /* Tweak the OSABI field of the elf header. */ -extern void elf32_m68hc11_post_process_headers - PARAMS ((bfd*, struct bfd_link_info*)); +extern void elf32_m68hc11_post_process_headers (bfd*, struct bfd_link_info*); -int elf32_m68hc11_setup_section_lists - PARAMS ((bfd *, struct bfd_link_info *)); +int elf32_m68hc11_setup_section_lists (bfd *, struct bfd_link_info *); bfd_boolean elf32_m68hc11_size_stubs - PARAMS ((bfd *, bfd *, struct bfd_link_info *, - asection * (*) PARAMS ((const char *, asection *)))); + (bfd *, bfd *, struct bfd_link_info *, + asection * (*) (const char *, asection *)); -bfd_boolean elf32_m68hc11_build_stubs - PARAMS ((bfd* abfd, struct bfd_link_info *)); +bfd_boolean elf32_m68hc11_build_stubs (bfd* abfd, struct bfd_link_info *); #endif |