]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
BFD: Fix function prototype breakage through stabs.c
authorMaciej W. Rozycki <macro@redhat.com>
Fri, 24 Oct 2025 20:39:46 +0000 (21:39 +0100)
committerMaciej W. Rozycki <macro@redhat.com>
Fri, 24 Oct 2025 20:39:46 +0000 (21:39 +0100)
Update function prototype templates through stabs.c according to commit
eb92a17c47ea ("bfd: move sec_info from ELF to general section struct"),
which changed the generated prototypes in libbfd.h by hand rather than
by remaking them properly from sources, and causing the build to fail as
soon as libbfd.h has been regenerated.

While at it remove an extraneous character introduced by the same commit
to a comment for a new member of `struct bfd_section'.

bfd/bfd-in2.h
bfd/section.c
bfd/stabs.c

index 1a178c57daf3be47d2442f1efebea3457e7aa54b..4858fef4b1e20d1d2bacf960285f4d5e2a63800e 100644 (file)
@@ -839,7 +839,7 @@ typedef struct bfd_section
      regions is enabled.  */
   struct bfd_section *already_assigned;
 
-  /* A pointer used for various section optimizations.  .sec_info_type
+  /* A pointer used for various section optimizations.  sec_info_type
      qualifies which one it is.  */
   void *sec_info;
 
index 5c6089d69196a21662e5a5360961d25ab32bc0ed..88c4482fe1753d601ca5cf7cf6c57844915f23f3 100644 (file)
@@ -566,7 +566,7 @@ CODE_FRAGMENT
 .  struct bfd_section *already_assigned;
 .
 .  {* A pointer used for various section optimizations.  sec_info_type
-ยด.     qualifies which one it is.  *}
+.     qualifies which one it is.  *}
 .  void *sec_info;
 .
 .  {* Explicitly specified section type, if non-zero.  *}
index f1b866bf7dd5d7f5b412664259f8b97b3a105f25..7e9d33716acd1a229d28118c21a461f4f258e9e5 100644 (file)
@@ -163,7 +163,7 @@ INTERNAL_FUNCTION
 
 SYNOPSIS
        bool _bfd_link_section_stabs
-         (bfd *, struct stab_info *, asection *, asection *, void **,
+         (bfd *, struct stab_info *, asection *, asection *,
           bfd_size_type *);
 
 DESCRIPTION
@@ -534,7 +534,7 @@ INTERNAL_FUNCTION
 
 SYNOPSIS
        bool _bfd_discard_section_stabs
-         (bfd *, asection *, void *, bool (*) (bfd_vma, void *), void *);
+         (bfd *, asection *, bool (*) (bfd_vma, void *), void *);
 
 DESCRIPTION
        This function is called for each input file before the stab
@@ -693,7 +693,7 @@ INTERNAL_FUNCTION
 
 SYNOPSIS
        bool _bfd_write_section_stabs
-         (bfd *, struct stab_info *, asection *, void **, bfd_byte *);
+         (bfd *, struct stab_info *, asection *, bfd_byte *);
 
 DESCRIPTION
        Write out the stab section.  This is called with the relocated
@@ -809,7 +809,7 @@ INTERNAL_FUNCTION
        _bfd_stab_section_offset
 
 SYNOPSIS
-       bfd_vma _bfd_stab_section_offset (asection *, void *, bfd_vma);
+       bfd_vma _bfd_stab_section_offset (asection *, bfd_vma);
 
 DESCRIPTION
        Adjust an address in the .stab section.  Given OFFSET within