[binutils-gdb] bfd/ELF: mark internal IA-64 functions hidden

Jan Beulich jbeulich@sourceware.org
Fri Nov 7 13:55:38 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=11fe65581d6f8d8d7cb99fc92d6d486367d19b1f

commit 11fe65581d6f8d8d7cb99fc92d6d486367d19b1f
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Nov 7 14:50:13 2025 +0100

    bfd/ELF: mark internal IA-64 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:
---
 bfd/elfxx-ia64.h | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/bfd/elfxx-ia64.h b/bfd/elfxx-ia64.h
index fda7c040f5a..49f9e4aa5bf 100644
--- a/bfd/elfxx-ia64.h
+++ b/bfd/elfxx-ia64.h
@@ -19,18 +19,21 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
    MA 02110-1301, USA.  */
 
-reloc_howto_type *ia64_elf_reloc_type_lookup (bfd *, bfd_reloc_code_real_type);
+reloc_howto_type *ia64_elf_reloc_type_lookup (bfd *, bfd_reloc_code_real_type)
+  ATTRIBUTE_HIDDEN;
 
-reloc_howto_type *ia64_elf_reloc_name_lookup (bfd *, const char *);
+reloc_howto_type *ia64_elf_reloc_name_lookup (bfd *, const char *)
+  ATTRIBUTE_HIDDEN;
 
-reloc_howto_type *ia64_elf_lookup_howto (unsigned int rtype);
+reloc_howto_type *ia64_elf_lookup_howto (unsigned int rtype) ATTRIBUTE_HIDDEN;
 
-bool ia64_elf_relax_br (bfd_byte *contents, bfd_vma off);
-void ia64_elf_relax_brl (bfd_byte *contents, bfd_vma off);
-void ia64_elf_relax_ldxmov (bfd_byte *contents, bfd_vma off);
+bool ia64_elf_relax_br (bfd_byte *contents, bfd_vma off) ATTRIBUTE_HIDDEN;
+void ia64_elf_relax_brl (bfd_byte *contents, bfd_vma off) ATTRIBUTE_HIDDEN;
+void ia64_elf_relax_ldxmov (bfd_byte *contents, bfd_vma off) ATTRIBUTE_HIDDEN;
 
 bfd_reloc_status_type ia64_elf_install_value (bfd_byte *hit_addr, bfd_vma v,
-					      unsigned int r_type);
+					      unsigned int r_type)
+  ATTRIBUTE_HIDDEN;
 
 /* IA64 Itanium code generation.  Called from linker.  */
 extern void bfd_elf32_ia64_after_parse


More information about the Binutils-cvs mailing list