elfxx-tilegx.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /* TILE-Gx ELF specific backend routines.
  2. Copyright (C) 2011-2017 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 bfd_boolean
  33. tilegx_elf_create_dynamic_sections (bfd *, struct bfd_link_info *);
  34. extern bfd_boolean
  35. tilegx_elf_check_relocs (bfd *, struct bfd_link_info *,
  36. asection *, const Elf_Internal_Rela *);
  37. extern bfd_boolean
  38. tilegx_elf_adjust_dynamic_symbol (struct bfd_link_info *,
  39. struct elf_link_hash_entry *);
  40. extern bfd_boolean
  41. tilegx_elf_omit_section_dynsym (bfd *,
  42. struct bfd_link_info *,
  43. asection *);
  44. extern bfd_boolean
  45. tilegx_elf_size_dynamic_sections (bfd *, struct bfd_link_info *);
  46. extern bfd_boolean
  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_boolean
  59. tilegx_elf_gc_sweep_hook (bfd *, struct bfd_link_info *,
  60. asection *, const Elf_Internal_Rela *);
  61. extern bfd_vma
  62. tilegx_elf_plt_sym_val (bfd_vma, const asection *, const arelent *);
  63. extern void
  64. tilegx_info_to_howto_rela (bfd *, arelent *, Elf_Internal_Rela *);
  65. extern int
  66. tilegx_additional_program_headers (bfd *, struct bfd_link_info *);
  67. extern bfd_boolean
  68. tilegx_elf_finish_dynamic_symbol (bfd *,
  69. struct bfd_link_info *,
  70. struct elf_link_hash_entry *,
  71. Elf_Internal_Sym *);
  72. extern bfd_boolean
  73. tilegx_elf_finish_dynamic_sections (bfd *, struct bfd_link_info *);
  74. extern bfd_boolean
  75. _bfd_tilegx_elf_merge_private_bfd_data (bfd *, struct bfd_link_info *);