[binutils-gdb] bfd/ELF: _bfd_elf{, 32, 64}_hppa_gen_reloc_type are exposed to gas

Jan Beulich jbeulich@sourceware.org
Fri Nov 7 14:03:09 GMT 2025


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

commit 70aa9fbb41ce763228903c5566d539c90fa018a4
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Nov 7 15:00:08 2025 +0100

    bfd/ELF: _bfd_elf{,32,64}_hppa_gen_reloc_type are exposed to gas
    
    As non-private functions / macros, they shouldn't have "_bfd_" prefixes,
    but merely "bfd_" ones.

Diff:
---
 bfd/elf-hppa.h       | 16 ++++++++--------
 bfd/elf32-hppa.h     |  2 +-
 bfd/elf64-hppa.h     |  2 +-
 gas/config/tc-hppa.c |  4 ++--
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index a2ff8f5cc86..710dbafd47d 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -30,7 +30,7 @@
 #define ELF_R_TYPE(X)		      ELF64_R_TYPE(X)
 #define ELF_R_SYM(X)		      ELF64_R_SYM(X)
 #define elf_hppa_reloc_final_type     elf64_hppa_reloc_final_type
-#define _bfd_elf_hppa_gen_reloc_type  _bfd_elf64_hppa_gen_reloc_type
+#define bfd_elf_hppa_gen_reloc_type   bfd_elf64_hppa_gen_reloc_type
 #define elf_hppa_relocate_section     elf64_hppa_relocate_section
 #define elf_hppa_final_link	      elf64_hppa_final_link
 #endif
@@ -38,7 +38,7 @@
 #define ELF_R_TYPE(X)		      ELF32_R_TYPE(X)
 #define ELF_R_SYM(X)		      ELF32_R_SYM(X)
 #define elf_hppa_reloc_final_type     elf32_hppa_reloc_final_type
-#define _bfd_elf_hppa_gen_reloc_type  _bfd_elf32_hppa_gen_reloc_type
+#define bfd_elf_hppa_gen_reloc_type   bfd_elf32_hppa_gen_reloc_type
 #define elf_hppa_relocate_section     elf32_hppa_relocate_section
 #define elf_hppa_final_link	      elf32_hppa_final_link
 #endif
@@ -745,12 +745,12 @@ elf_hppa_reloc_final_type (bfd *abfd,
    relocation with modifications based on format and field.  */
 
 elf_hppa_reloc_type **
-_bfd_elf_hppa_gen_reloc_type (bfd *abfd,
-			      elf_hppa_reloc_type base_type,
-			      int format,
-			      unsigned int field,
-			      int ignore ATTRIBUTE_UNUSED,
-			      asymbol *sym ATTRIBUTE_UNUSED)
+bfd_elf_hppa_gen_reloc_type (bfd *abfd,
+			     elf_hppa_reloc_type base_type,
+			     int format,
+			     unsigned int field,
+			     int ignore ATTRIBUTE_UNUSED,
+			     asymbol *sym ATTRIBUTE_UNUSED)
 {
   elf_hppa_reloc_type *finaltype;
   elf_hppa_reloc_type **final_types;
diff --git a/bfd/elf32-hppa.h b/bfd/elf32-hppa.h
index 38eb353799b..bcdef306270 100644
--- a/bfd/elf32-hppa.h
+++ b/bfd/elf32-hppa.h
@@ -62,7 +62,7 @@ bool elf32_hppa_build_stubs
 elf_hppa_reloc_type elf32_hppa_reloc_final_type
   (bfd *, elf_hppa_reloc_type, int, unsigned int);
 
-extern elf_hppa_reloc_type ** _bfd_elf32_hppa_gen_reloc_type
+extern elf_hppa_reloc_type **bfd_elf32_hppa_gen_reloc_type
   (bfd *, elf_hppa_reloc_type, int, unsigned int, int, asymbol *);
 
 /* Define groups of basic relocations.  FIXME:  These should
diff --git a/bfd/elf64-hppa.h b/bfd/elf64-hppa.h
index 3c833a7ffae..4b1ea1ebb11 100644
--- a/bfd/elf64-hppa.h
+++ b/bfd/elf64-hppa.h
@@ -29,7 +29,7 @@
 extern elf_hppa_reloc_type elf64_hppa_reloc_final_type
   (bfd *, elf_hppa_reloc_type, int, unsigned int);
 
-extern elf_hppa_reloc_type ** _bfd_elf64_hppa_gen_reloc_type
+extern elf_hppa_reloc_type **bfd_elf64_hppa_gen_reloc_type
   (bfd *, elf_hppa_reloc_type, int, unsigned int, int, asymbol *);
 
 /* Define groups of basic relocations.  FIXME:  These should
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 744613fa2e2..0f5b45bb5fb 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -54,10 +54,10 @@ typedef elf_symbol_type obj_symbol_type;
 
 #if TARGET_ARCH_SIZE == 64
 /* How to generate a relocation.  */
-#define hppa_gen_reloc_type _bfd_elf64_hppa_gen_reloc_type
+#define hppa_gen_reloc_type bfd_elf64_hppa_gen_reloc_type
 #define elf_hppa_reloc_final_type elf64_hppa_reloc_final_type
 #else
-#define hppa_gen_reloc_type _bfd_elf32_hppa_gen_reloc_type
+#define hppa_gen_reloc_type bfd_elf32_hppa_gen_reloc_type
 #define elf_hppa_reloc_final_type elf32_hppa_reloc_final_type
 #endif


More information about the Binutils-cvs mailing list