]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/ELF: properly mark elf_read_notes() as private
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:57:16 +0000 (14:57 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:57:16 +0000 (14:57 +0100)
Add a _bfd_ prefix and make it hidden.

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

index 010a70edff8b428b9530dd8456e274026da468d3..8c3639f00eb9d8b9890294f4595d5d268d9418ea 100644 (file)
@@ -3134,7 +3134,8 @@ extern bool _bfd_elf_merge_unknown_attribute_list
   (bfd *, bfd *) ATTRIBUTE_HIDDEN;
 extern Elf_Internal_Shdr *_bfd_elf_single_rel_hdr
   (asection *sec);
-extern bool elf_read_notes (bfd *, file_ptr, bfd_size_type, size_t);
+extern bool _bfd_elf_read_notes
+  (bfd *, file_ptr, bfd_size_type, size_t) ATTRIBUTE_HIDDEN;
 
 extern bool _bfd_elf_parse_gnu_properties
   (bfd *, Elf_Internal_Note *) ATTRIBUTE_HIDDEN;
index 36bc2507b4a090a295aae14b17a0a6c8c44c1a17..5e3ec17003e0335a57e8996aa6cee04daf5ced9f 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3483,8 +3483,8 @@ bfd_section_from_phdr (bfd *abfd, Elf_Internal_Phdr *hdr, int hdr_index)
     case PT_NOTE:
       if (! _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "note"))
        return false;
-      if (! elf_read_notes (abfd, hdr->p_offset, hdr->p_filesz,
-                           hdr->p_align))
+      if (! _bfd_elf_read_notes (abfd, hdr->p_offset, hdr->p_filesz,
+                                hdr->p_align))
        return false;
       return true;
 
@@ -13157,8 +13157,8 @@ elf_parse_notes (bfd *abfd, char *buf, size_t size, file_ptr offset,
 }
 
 bool
-elf_read_notes (bfd *abfd, file_ptr offset, bfd_size_type size,
-               size_t align)
+_bfd_elf_read_notes (bfd *abfd, file_ptr offset, bfd_size_type size,
+                    size_t align)
 {
   char *buf;
 
index 6f1015e02e55f0fd9819d2355ba1acc82cb02530..6eb354bdd1d73eb17cd70cb677febf74974d5804 100644 (file)
@@ -381,8 +381,8 @@ NAME(_bfd_elf, core_find_build_id)
 
       if (i_phdr->p_type == PT_NOTE && i_phdr->p_filesz > 0)
        {
-         elf_read_notes (abfd, offset + i_phdr->p_offset,
-                         i_phdr->p_filesz, i_phdr->p_align);
+         _bfd_elf_read_notes (abfd, offset + i_phdr->p_offset,
+                              i_phdr->p_filesz, i_phdr->p_align);
 
          /* Make sure ABFD returns to processing the program headers.  */
          if (bfd_seek (abfd,