]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: Move bfd_init to bfd.c
authorAlan Modra <amodra@gmail.com>
Sat, 9 Mar 2024 09:18:48 +0000 (19:48 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 9 Mar 2024 09:22:16 +0000 (19:52 +1030)
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.

bfd/bfd.c

index 1bdfac6c24cb20e9646863276dc3101adaefe69c..f40cf941edcdcff4faf85d4563a01b2048011296 100644 (file)
--- 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;