diff options
author | Tom Tromey <tom@tromey.com> | 2023-02-17 12:12:11 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-20 14:35:15 -0700 |
commit | 03a7c6eb51811e7c0b0fa21fbdf2b3434986ba64 (patch) | |
tree | b43f09136d926f3038eb3cbcc16483a9e9f53d54 | |
parent | 2070491c1c31b254b1e8f2250144777a23e9f616 (diff) | |
download | binutils-gdb-03a7c6eb51811e7c0b0fa21fbdf2b3434986ba64.tar.gz |
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 <tom@tromey.com>
* opncls.c: Hoist the SECTION comment.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/opncls.c | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a974a5c6716..fac38b8e4fa 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,9 @@ 2023-02-17 Tom Tromey <tom@tromey.com> + * opncls.c: Hoist the SECTION comment. + +2023-02-17 Tom Tromey <tom@tromey.com> + * opncls.c (bfd_get_debug_link_info_1, separate_debug_file_exists) (separate_alt_debug_file_exists, find_separate_debug_file) (get_build_id, get_build_id_name, check_build_id_file): Don't use 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; @@ -186,14 +194,6 @@ _bfd_free_cached_info (bfd *abfd) } /* -SECTION - Opening and closing BFDs - -SUBSECTION - Functions for opening and closing -*/ - -/* FUNCTION bfd_fopen |