diff options
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index d18df17..c58bd4f 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1183,6 +1183,11 @@ struct elf_backend_data unsigned int (*elf_backend_count_additional_relocs) (asection *); + /* Count relocations to be output. The result may be different if the + input relocations are expected to be modified by the backend. */ + unsigned int (* elf_backend_count_output_relocs) + (struct bfd_link_info *, asection *, bfd_boolean is_rela); + /* Say whether to sort relocs output by ld -r and ld --emit-relocs, by r_offset. If NULL, default to true. */ bfd_boolean (*sort_relocs_p) @@ -2152,6 +2157,9 @@ extern bfd_boolean _bfd_elf_link_output_relocs (bfd *, asection *, Elf_Internal_Shdr *, Elf_Internal_Rela *, struct elf_link_hash_entry **); +extern unsigned int _bfd_elf_default_count_output_relocs + (struct bfd_link_info * ATTRIBUTE_UNUSED, asection *, bfd_boolean); + extern bfd_boolean _bfd_elf_adjust_dynamic_copy (struct bfd_link_info *, struct elf_link_hash_entry *, asection *); |