]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/ELF: make is_debuginfo_file() static
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:56:19 +0000 (14:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:56:19 +0000 (14:56 +0100)
No need to expose it, even less so in the dynamic symbol table.

bfd/elf-bfd.h
bfd/elf.c

index 0af10ff5ab949adb95422ab35eebf1ec82f7ffac..a7625e52c04df7428e8c52556a725da2dc22a342 100644 (file)
@@ -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
index 56a5857e29edbeb741a9dec5e83ba9c88dbbb304..0be4e13b3551fd89c134e55df4c5f5d75d4b8343 100644 (file)
--- 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)