From: Maciej W. Rozycki Date: Fri, 24 Oct 2025 20:39:46 +0000 (+0100) Subject: BFD: Fix function prototype breakage through stabs.c X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1266b99f270679e76db512214541e51f8c6e1c11;p=thirdparty%2Fbinutils-gdb.git 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 --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