[binutils-gdb] bfd/ELF: make is_debuginfo_file() static
Jan Beulich
jbeulich@sourceware.org
Fri Nov 7 13:59:36 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5e648fc6a0a066fad38d99b72fb85f2710f2c098
commit 5e648fc6a0a066fad38d99b72fb85f2710f2c098
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Nov 7 14:56:19 2025 +0100
bfd/ELF: make is_debuginfo_file() static
No need to expose it, even less so in the dynamic symbol table.
Diff:
---
bfd/elf-bfd.h | 3 ---
bfd/elf.c | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 0af10ff5ab9..a7625e52c04 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -3184,9 +3184,6 @@ extern bfd_vma elf64_r_sym (bfd_vma);
extern bfd_vma elf32_r_info (bfd_vma, bfd_vma);
extern bfd_vma elf32_r_sym (bfd_vma);
-extern bool is_debuginfo_file (bfd *);
-
-
extern bool _bfd_elf_init_secondary_reloc_section
(bfd *, Elf_Internal_Shdr *, const char *, unsigned int) ATTRIBUTE_HIDDEN;
extern bool _bfd_elf_slurp_secondary_reloc_section
diff --git a/bfd/elf.c b/bfd/elf.c
index 56a5857e29e..0be4e13b355 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6568,7 +6568,7 @@ assign_file_positions_for_load_sections (bfd *abfd,
is no defined method for detecting such files, so we have to
use heuristics instead. */
-bool
+static bool
is_debuginfo_file (bfd *abfd)
{
if (abfd == NULL || bfd_get_flavour (abfd) != bfd_target_elf_flavour)
More information about the Binutils-cvs
mailing list