[committed] BFD: Fix function prototype breakage through stabs.c
Maciej W. Rozycki
macro@redhat.com
Fri Oct 24 20:41:51 GMT 2025
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'.
---
Committed as obvious; no change to regenerated libbfd.h with this update
in place.
---
bfd/bfd-in2.h | 2 +-
bfd/section.c | 2 +-
bfd/stabs.c | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
binutils-eb92a17c47ea-fix.diff
Index: binutils-gdb/bfd/bfd-in2.h
===================================================================
--- binutils-gdb.orig/bfd/bfd-in2.h
+++ binutils-gdb/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;
Index: binutils-gdb/bfd/section.c
===================================================================
--- binutils-gdb.orig/bfd/section.c
+++ binutils-gdb/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. *}
Index: binutils-gdb/bfd/stabs.c
===================================================================
--- binutils-gdb.orig/bfd/stabs.c
+++ binutils-gdb/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
mailing list