elfxx-tilegx.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /* TILE-Gx ELF specific backend routines.
  2. Copyright (C) 2011-2022 Free Software Foundation, Inc.
  3. This file is part of BFD, the Binary File Descriptor library.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. #include "elf/common.h"
  17. #include "elf/internal.h"
  18. extern enum elf_reloc_type_class
  19. tilegx_reloc_type_class (const struct bfd_link_info *,
  20. const asection *,
  21. const Elf_Internal_Rela *);
  22. extern reloc_howto_type *
  23. tilegx_reloc_name_lookup (bfd *, const char *);
  24. extern struct bfd_link_hash_table *
  25. tilegx_elf_link_hash_table_create (bfd *);
  26. extern reloc_howto_type *
  27. tilegx_reloc_type_lookup (bfd *, bfd_reloc_code_real_type);
  28. extern void
  29. tilegx_elf_copy_indirect_symbol (struct bfd_link_info *,
  30. struct elf_link_hash_entry *,
  31. struct elf_link_hash_entry *);
  32. extern bool
  33. tilegx_elf_create_dynamic_sections (bfd *, struct bfd_link_info *);
  34. extern bool
  35. tilegx_elf_check_relocs (bfd *, struct bfd_link_info *,
  36. asection *, const Elf_Internal_Rela *);
  37. extern bool
  38. tilegx_elf_adjust_dynamic_symbol (struct bfd_link_info *,
  39. struct elf_link_hash_entry *);
  40. extern bool
  41. tilegx_elf_omit_section_dynsym (bfd *,
  42. struct bfd_link_info *,
  43. asection *);
  44. extern bool
  45. tilegx_elf_size_dynamic_sections (bfd *, struct bfd_link_info *);
  46. extern int
  47. tilegx_elf_relocate_section (bfd *, struct bfd_link_info *,
  48. bfd *, asection *,
  49. bfd_byte *, Elf_Internal_Rela *,
  50. Elf_Internal_Sym *,
  51. asection **);
  52. extern asection *
  53. tilegx_elf_gc_mark_hook (asection *,
  54. struct bfd_link_info *,
  55. Elf_Internal_Rela *,
  56. struct elf_link_hash_entry *,
  57. Elf_Internal_Sym *);
  58. extern bfd_vma
  59. tilegx_elf_plt_sym_val (bfd_vma, const asection *, const arelent *);
  60. extern bool
  61. tilegx_info_to_howto_rela (bfd *, arelent *, Elf_Internal_Rela *);
  62. extern int
  63. tilegx_additional_program_headers (bfd *, struct bfd_link_info *);
  64. extern bool
  65. tilegx_elf_finish_dynamic_symbol (bfd *,
  66. struct bfd_link_info *,
  67. struct elf_link_hash_entry *,
  68. Elf_Internal_Sym *);
  69. extern bool
  70. tilegx_elf_finish_dynamic_sections (bfd *, struct bfd_link_info *);
  71. extern bool
  72. _bfd_tilegx_elf_merge_private_bfd_data (bfd *, struct bfd_link_info *);