From: Jan Beulich Date: Fri, 7 Nov 2025 13:53:01 +0000 (+0100) Subject: bfd/ELF: mark internal Sparc functions hidden X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f27c850601c7a2cd64aba0620d7b8ba6b2c51b2;p=thirdparty%2Fbinutils-gdb.git bfd/ELF: mark internal Sparc functions hidden This reduces the dynamic symbol table a little and allows the compiler to be more aggressive about inlining (as it sees fit, of course). --- diff --git a/bfd/elfxx-sparc.h b/bfd/elfxx-sparc.h index fe178077706..26fec7566e8 100644 --- a/bfd/elfxx-sparc.h +++ b/bfd/elfxx-sparc.h @@ -86,52 +86,53 @@ struct _bfd_sparc_elf_link_hash_table ? (struct _bfd_sparc_elf_link_hash_table *) (p)->hash : NULL) extern reloc_howto_type *_bfd_sparc_elf_reloc_type_lookup - (bfd *, bfd_reloc_code_real_type); + (bfd *, bfd_reloc_code_real_type) ATTRIBUTE_HIDDEN; extern reloc_howto_type *_bfd_sparc_elf_reloc_name_lookup - (bfd *, const char *); + (bfd *, const char *) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_info_to_howto - (bfd *, arelent *, Elf_Internal_Rela *); + (bfd *, arelent *, Elf_Internal_Rela *) ATTRIBUTE_HIDDEN; extern reloc_howto_type *_bfd_sparc_elf_info_to_howto_ptr - (bfd*, unsigned int); + (bfd*, unsigned int) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_mkobject - (bfd *); + (bfd *) ATTRIBUTE_HIDDEN; extern struct bfd_link_hash_table *_bfd_sparc_elf_link_hash_table_create - (bfd *); + (bfd *) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_create_dynamic_sections - (bfd *, struct bfd_link_info *); + (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN; extern void _bfd_sparc_elf_copy_indirect_symbol (struct bfd_link_info *, struct elf_link_hash_entry *, - struct elf_link_hash_entry *); + struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_check_relocs (bfd *, struct bfd_link_info *, - asection *, const Elf_Internal_Rela *); + asection *, const Elf_Internal_Rela *) ATTRIBUTE_HIDDEN; extern asection *_bfd_sparc_elf_gc_mark_hook (asection *, struct bfd_link_info *, struct elf_reloc_cookie *, - struct elf_link_hash_entry *, unsigned int); + struct elf_link_hash_entry *, unsigned int) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_adjust_dynamic_symbol - (struct bfd_link_info *, struct elf_link_hash_entry *); + (struct bfd_link_info *, struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_omit_section_dynsym - (bfd *, struct bfd_link_info *, asection *); + (bfd *, struct bfd_link_info *, asection *) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_late_size_sections - (bfd *, struct bfd_link_info *); + (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_new_section_hook - (bfd *, asection *); + (bfd *, asection *) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_relax_section - (bfd *, struct bfd_section *, struct bfd_link_info *, bool *); + (bfd *, struct bfd_section *, struct bfd_link_info *, bool *) + ATTRIBUTE_HIDDEN; extern int _bfd_sparc_elf_relocate_section (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, - Elf_Internal_Rela *, Elf_Internal_Sym *, asection **); + Elf_Internal_Rela *, Elf_Internal_Sym *, asection **) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_finish_dynamic_symbol (bfd *, struct bfd_link_info *, struct elf_link_hash_entry *, - Elf_Internal_Sym *sym); + Elf_Internal_Sym *sym) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_finish_dynamic_sections - (bfd *, struct bfd_link_info *); + (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_fixup_symbol - (struct bfd_link_info *, struct elf_link_hash_entry *); + (struct bfd_link_info *, struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_object_p - (bfd *); + (bfd *) ATTRIBUTE_HIDDEN; extern bfd_vma _bfd_sparc_elf_plt_sym_val - (bfd_vma, const asection *, const arelent *); + (bfd_vma, const asection *, const arelent *) ATTRIBUTE_HIDDEN; extern bool _bfd_sparc_elf_merge_private_bfd_data - (bfd *, struct bfd_link_info *); + (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;