From: Tom Tromey Date: Fri, 17 Feb 2023 19:12:11 +0000 (-0700) Subject: Hoist the SECTION comment in opncls.c X-Git-Tag: binutils-2_41~1677 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03a7c6eb51811e7c0b0fa21fbdf2b3434986ba64;p=thirdparty%2Fbinutils-gdb.git Hoist the SECTION comment in opncls.c The opening and closing node in BFD starts: File: bfd.info, [...] /* Set to N to open the next N BFDs using an alternate id space. */ extern unsigned int bfd_use_reserved_id; 2.13 Opening and closing BFDs ============================= That is, there's a stray C comment and declaration before any other text or subsections. This occurs because the code fragment for bfd_use_reserved_id comes before the SECTION comment. Hoisting it makes this a little nicer. 2023-02-17 Tom Tromey * opncls.c: Hoist the SECTION comment. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a974a5c6716..fac38b8e4fa 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2023-02-17 Tom Tromey + + * opncls.c: Hoist the SECTION comment. + 2023-02-17 Tom Tromey * opncls.c (bfd_get_debug_link_info_1, separate_debug_file_exists) diff --git a/bfd/opncls.c b/bfd/opncls.c index 3fa2b03fdf9..4d0ca48ee78 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -37,6 +37,14 @@ #define S_IXOTH 0001 /* Execute by others. */ #endif +/* +SECTION + Opening and closing BFDs + +SUBSECTION + Functions for opening and closing +*/ + /* Counters used to initialize the bfd identifier. */ static unsigned int bfd_id_counter = 0; @@ -185,14 +193,6 @@ _bfd_free_cached_info (bfd *abfd) return true; } -/* -SECTION - Opening and closing BFDs - -SUBSECTION - Functions for opening and closing -*/ - /* FUNCTION bfd_fopen