[binutils-gdb] Re: Move bfd_init to bfd.c
Alan Modra
amodra@sourceware.org
Sat Mar 9 09:23:32 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0c947d990a92fd48ac0aa887df7e1e055fa0d680
commit 0c947d990a92fd48ac0aa887df7e1e055fa0d680
Author: Alan Modra <amodra@gmail.com>
Date: Sat Mar 9 19:48:48 2024 +1030
Re: Move bfd_init to bfd.c
Commit b1c95bc4dd73 cleared some bfd static variables, with bad
results since bfd_set_error_program_name is often called before
bfd_init.
* bfd.c (bfd_init): Don't clear _bfd_error_program_name.
Diff:
---
bfd/bfd.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 1bdfac6c24c..f40cf941edc 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -1748,7 +1748,6 @@ bfd_init (void)
input_bfd = NULL;
_bfd_clear_error_data ();
input_error = bfd_error_no_error;
- _bfd_error_program_name = NULL;
_bfd_error_internal = error_handler_fprintf;
_bfd_assert_handler = _bfd_default_assert_handler;
More information about the Binutils-cvs
mailing list