[binutils-gdb] BFD: Fix function prototype breakage through stabs.c
Maciej W. Rozycki
macro@sourceware.org
Fri Oct 24 20:41:31 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1266b99f270679e76db512214541e51f8c6e1c11
commit 1266b99f270679e76db512214541e51f8c6e1c11
Author: Maciej W. Rozycki <macro@redhat.com>
Date: Fri Oct 24 21:39:46 2025 +0100
BFD: Fix function prototype breakage through stabs.c
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'.
Diff:
---
bfd/bfd-in2.h | 2 +-
bfd/section.c | 2 +-
bfd/stabs.c | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 1a178c57daf..4858fef4b1e 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -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;
diff --git a/bfd/section.c b/bfd/section.c
index 5c6089d6919..88c4482fe17 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -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. *}
diff --git a/bfd/stabs.c b/bfd/stabs.c
index f1b866bf7dd..7e9d33716ac 100644
--- a/bfd/stabs.c
+++ b/bfd/stabs.c
@@ -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
More information about the Binutils-cvs
mailing list