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

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


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

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

    bfd/ELF: mark internal KVX 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-kvx.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/bfd/elfxx-kvx.h b/bfd/elfxx-kvx.h
index f7362217444..ce0822371bd 100644
--- a/bfd/elfxx-kvx.h
+++ b/bfd/elfxx-kvx.h
@@ -49,7 +49,8 @@ extern bool elf32_kvx_build_stubs
 
 extern bfd_reloc_status_type
 _bfd_kvx_elf_put_addend (bfd *, bfd_byte *, bfd_reloc_code_real_type,
-			     reloc_howto_type *, bfd_signed_vma);
+			     reloc_howto_type *, bfd_signed_vma)
+  ATTRIBUTE_HIDDEN;
 
 bool
 kvx_elf32_init_stub_bfd (struct bfd_link_info *info,
@@ -58,9 +59,11 @@ bool
 kvx_elf64_init_stub_bfd (struct bfd_link_info *info,
 			bfd *stub_bfd);
 
-bool _bfd_kvx_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note);
+bool _bfd_kvx_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
+  ATTRIBUTE_HIDDEN;
 
-bool _bfd_kvx_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note);
+bool _bfd_kvx_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
+  ATTRIBUTE_HIDDEN;
 
 #define elf_backend_grok_prstatus _bfd_kvx_elf_grok_prstatus
 #define elf_backend_grok_psinfo _bfd_kvx_elf_grok_psinfo


More information about the Binutils-cvs mailing list