]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/COFF: properly mark bfd_coff_{gc_sections,group_name}() as private
authorJan Beulich <jbeulich@suse.com>
Fri, 21 Nov 2025 08:04:15 +0000 (09:04 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 21 Nov 2025 08:04:15 +0000 (09:04 +0100)
Add an underscore prefix and make them hidden.

bfd/coffcode.h
bfd/coffgen.c
bfd/libcoff-in.h
bfd/libcoff.h

index ce1e39131b4dd74305458cea58e063476a2ffef9..81ba944b1681a67a7413e736626abd52dc7ce61d 100644 (file)
@@ -6017,7 +6017,7 @@ static const bfd_coff_backend_data bigobj_swap_table =
 #endif
 
 #ifndef coff_bfd_gc_sections
-#define coff_bfd_gc_sections               bfd_coff_gc_sections
+#define coff_bfd_gc_sections               _bfd_coff_gc_sections
 #endif
 
 #ifndef coff_bfd_lookup_section_flags
@@ -6029,7 +6029,7 @@ static const bfd_coff_backend_data bigobj_swap_table =
 #endif
 
 #ifndef coff_bfd_group_name
-#define coff_bfd_group_name                bfd_coff_group_name
+#define coff_bfd_group_name                _bfd_coff_group_name
 #endif
 
 #ifndef coff_bfd_discard_group
index 071ca0d133c15ba4a07dde17d210e42e65ec101c..a851a22c22e55956f2b371ff820da1487d3b4d5e 100644 (file)
@@ -3246,7 +3246,7 @@ _bfd_coff_gc_keep (struct bfd_link_info *info)
 /* Do mark and sweep of unused sections.  */
 
 bool
-bfd_coff_gc_sections (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
+_bfd_coff_gc_sections (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
 {
   bfd *sub;
 
@@ -3296,7 +3296,7 @@ bfd_coff_gc_sections (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
 /* Return name used to identify a comdat group.  */
 
 const char *
-bfd_coff_group_name (bfd *abfd, const asection *sec)
+_bfd_coff_group_name (bfd *abfd, const asection *sec)
 {
   struct coff_comdat_info *ci = bfd_coff_get_comdat_section (abfd, sec);
   if (ci != NULL)
index d7efcffffa805826598a6e5d9fe29e260d553ae4..88f5760b5428f3a671116f32f295f64bd9ef9b20 100644 (file)
@@ -641,10 +641,10 @@ extern bool _bfd_coff_link_input_bfd
 extern bool _bfd_coff_reloc_link_order
   (bfd *, struct coff_final_link_info *, asection *,
    struct bfd_link_order *) ATTRIBUTE_HIDDEN;
-extern bool bfd_coff_gc_sections
-  (bfd *, struct bfd_link_info *);
-extern const char *bfd_coff_group_name
-  (bfd *, const asection *);
+extern bool _bfd_coff_gc_sections
+  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
+extern const char *_bfd_coff_group_name
+  (bfd *, const asection *) ATTRIBUTE_HIDDEN;
 
 /* Functions in xcofflink.c.  */
 
index 9d9ee18de405c0e55c431e3716a76ad067cb84af..d2d550174dab585bd8970eb40d5bf155bc82da1f 100644 (file)
@@ -645,10 +645,10 @@ extern bool _bfd_coff_link_input_bfd
 extern bool _bfd_coff_reloc_link_order
   (bfd *, struct coff_final_link_info *, asection *,
    struct bfd_link_order *) ATTRIBUTE_HIDDEN;
-extern bool bfd_coff_gc_sections
-  (bfd *, struct bfd_link_info *);
-extern const char *bfd_coff_group_name
-  (bfd *, const asection *);
+extern bool _bfd_coff_gc_sections
+  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
+extern const char *_bfd_coff_group_name
+  (bfd *, const asection *) ATTRIBUTE_HIDDEN;
 
 /* Functions in xcofflink.c.  */