[PATCH 04/27] bfd/ELF: mark internal IA-64 functions hidden

Jan Beulich jbeulich@suse.com
Mon Oct 27 14:09:13 GMT 2025


This reduces the dynamic symbol table a little and allows the compiler to
be more aggressive about inlining (as it sees fit, of course).

--- 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 mailing list