Revert "bfd/ELF: make is_debuginfo_file() static"

This reverts commit 5e648fc6a0, since it
breaks the GDB build:

      CXX    elfread.o
    /home/smarchi/src/binutils-gdb/gdb/elfread.c: In function ‘symfile_segment_data_up elf_symfile_segments(bfd*)’:
    /home/smarchi/src/binutils-gdb/gdb/elfread.c:145:12: error: ‘is_debuginfo_file’ was not declared in this scope
      145 |       if (!is_debuginfo_file (abfd)
          |            ^~~~~~~~~~~~~~~~~

Change-Id: I180a9f6936365c365a853c7dae2af01f5207a84e
This commit is contained in:
Simon Marchi
2025-11-07 16:42:35 +00:00
parent b94d8189ae
commit 6d30159f9a
2 changed files with 4 additions and 1 deletions

View File

@@ -3187,6 +3187,9 @@ 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

View File

@@ -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. */
static bool
bool
is_debuginfo_file (bfd *abfd)
{
if (abfd == NULL || bfd_get_flavour (abfd) != bfd_target_elf_flavour)