From 0017655509ac91752827bc649a6c525295352344 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 30 May 1996 22:33:51 +0000 Subject: * elf64-mips.c: Extensive additions to provide better support for writing files and for gas. * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out of mips_elf_object_p. (mips_elf32_object_p): Rename from mips_elf_object_p; call _bfd_mips_elf_object_p. (_bfd_mips_elf_final_write_processing): Rename from mips_elf_final_write_processing and make globally visible. (_bfd_mips_elf_fake_sections): Rename from mips_elf_fake_sections and make globally visible. (_bfd_mips_elf_section_from_bfd_section): Rename from mips_elf_section_from_bfd_section and make globally visible. (_bfd_mips_elf_section_processing): New function, broken out of mips_elf_section_processing. (mips_elf32_section_processing): Rename from mips_elf_section_processing; call _bfd_mips_elf_section_processing. (_bfd_mips_elf_symbol_processing): Rename from mips_elf_symbol_processing and make globally visible. (_bfd_mips_elf_read_ecoff_info): Rename from mips_elf_read_ecoff_info and make globally visible. (mips_elf32_ecoff_debug_swap): Rename from mips_elf_ecoff_debug_swap. * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than struct symbol_cache_entry. (_bfd_elf_validate_reloc): New function, moved in from elfcode.h:validate_reloc. * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed to _bfd_elf_validate_reloc. Change all callers. * elf-bfd.h (bfd_section_from_shdr): Declare. (_bfd_elf_symbol_from_bfd_symbol): Declare. (_bfd_elf_validate_reloc): Declare. (_bfd_mips_elf_object_p): Declare. (_bfd_mips_elf_fake_sections): Declare. (_bfd_mips_elf_section_from_bfd_section): Declare. (_bfd_mips_elf_section_processing): Declare. (_bfd_mips_elf_symbol_processing): Declare. (_bfd_mips_elf_read_ecoff_info): Declare. (_bfd_mips_elf_final_write_processing): Declare. * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define if already defined. --- bfd/elf-bfd.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'bfd/elf-bfd.h') diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 7b9b243..4592386 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -718,6 +718,10 @@ extern boolean _bfd_elf_new_section_hook PARAMS ((bfd *, asection *)); extern void _bfd_elf_no_info_to_howto PARAMS ((bfd *, arelent *, Elf_Internal_Rela *)); +extern boolean bfd_section_from_shdr PARAMS ((bfd *, unsigned int shindex)); + +extern int _bfd_elf_symbol_from_bfd_symbol PARAMS ((bfd *, asymbol **)); + asection *bfd_section_from_elf_index PARAMS ((bfd *, unsigned int)); boolean _bfd_elf_create_dynamic_sections PARAMS ((bfd *, struct bfd_link_info *)); @@ -733,6 +737,8 @@ file_ptr _bfd_elf_assign_file_position_for_section PARAMS ((Elf_Internal_Shdr *, file_ptr, boolean)); +extern boolean _bfd_elf_validate_reloc PARAMS ((bfd *, arelent *)); + boolean _bfd_elf_create_dynamic_sections PARAMS ((bfd *, struct bfd_link_info *)); boolean _bfd_elf_create_got_section PARAMS ((bfd *, @@ -876,7 +882,18 @@ extern boolean bfd_elf64_link_create_dynamic_sections /* MIPS ELF specific routines. */ +extern boolean _bfd_mips_elf_object_p PARAMS ((bfd *)); extern boolean _bfd_mips_elf_section_from_shdr PARAMS ((bfd *, Elf_Internal_Shdr *, const char *)); +extern boolean _bfd_mips_elf_fake_sections + PARAMS ((bfd *, Elf_Internal_Shdr *, asection *)); +extern boolean _bfd_mips_elf_section_from_bfd_section + PARAMS ((bfd *, Elf_Internal_Shdr *, asection *, int *)); +extern boolean _bfd_mips_elf_section_processing + PARAMS ((bfd *, Elf_Internal_Shdr *)); +extern void _bfd_mips_elf_symbol_processing PARAMS ((bfd *, asymbol *)); +extern boolean _bfd_mips_elf_read_ecoff_info + PARAMS ((bfd *, asection *, struct ecoff_debug_info *)); +extern void _bfd_mips_elf_final_write_processing PARAMS ((bfd *, boolean)); #endif /* _LIBELF_H_ */ -- cgit v1.1