]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/ELF: properly mark bfd_elf_print_symbol() as private
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:57:01 +0000 (14:57 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:57:01 +0000 (14:57 +0100)
Add a leading underscore and make it hidden.

bfd/elf-bfd.h
bfd/elf.c
bfd/elfxx-target.h

index a7625e52c04df7428e8c52556a725da2dc22a342..010a70edff8b428b9530dd8456e274026da468d3 100644 (file)
@@ -2316,8 +2316,8 @@ extern bool _bfd_elf_print_private_bfd_data
   (bfd *, void *) ATTRIBUTE_HIDDEN;
 const char * _bfd_elf_get_symbol_version_string
   (bfd *, asymbol *, bool, bool *) ATTRIBUTE_HIDDEN;
-extern void bfd_elf_print_symbol
-  (bfd *, void *, asymbol *, bfd_print_symbol_type);
+extern void _bfd_elf_print_symbol
+  (bfd *, void *, asymbol *, bfd_print_symbol_type) ATTRIBUTE_HIDDEN;
 
 extern unsigned int _bfd_elf_eh_frame_address_size
   (bfd *, const asection *) ATTRIBUTE_HIDDEN;
index 0be4e13b3551fd89c134e55df4c5f5d75d4b8343..36bc2507b4a090a295aae14b17a0a6c8c44c1a17 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2397,10 +2397,10 @@ _bfd_elf_get_symbol_version_string (bfd *abfd, asymbol *symbol,
 /* Display ELF-specific fields of a symbol.  */
 
 void
-bfd_elf_print_symbol (bfd *abfd,
-                     void *filep,
-                     asymbol *symbol,
-                     bfd_print_symbol_type how)
+_bfd_elf_print_symbol (bfd *abfd,
+                      void *filep,
+                      asymbol *symbol,
+                      bfd_print_symbol_type how)
 {
   FILE *file = (FILE *) filep;
   const char *symname = (symbol->name != bfd_symbol_error_name
index 5ae98b5ecc18811d792acf17745bd0403eeb8c02..27b07c9b1c4b039df2cc466167845d56f38d2565 100644 (file)
 #endif
 
 #ifndef bfd_elfNN_print_symbol
-#define bfd_elfNN_print_symbol bfd_elf_print_symbol
+#define bfd_elfNN_print_symbol _bfd_elf_print_symbol
 #endif
 
 #ifndef elf_symbol_leading_char