From: Alan Modra Date: Sat, 9 Mar 2024 09:18:48 +0000 (+1030) Subject: Re: Move bfd_init to bfd.c X-Git-Tag: gdb-15-branchpoint~768 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c947d990a92fd48ac0aa887df7e1e055fa0d680;p=thirdparty%2Fbinutils-gdb.git 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 --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;