2001-05-31 H.J. Lu <hjl@gnu.org>

* ldlang.c (open_input_bfds): Don't change the bfd error
	handler whilst loading symbols.
This commit is contained in:
H.J. Lu
2001-05-31 21:14:59 +00:00
parent 9fd7143a93
commit 5929ebc003
2 changed files with 5 additions and 10 deletions

View File

@@ -1914,7 +1914,6 @@ open_input_bfds (s, force)
if (s->input_statement.real)
{
lang_statement_list_type add;
bfd_error_handler_type pfn;
s->input_statement.target = current_target;
@@ -1931,15 +1930,8 @@ open_input_bfds (s, force)
lang_list_init (&add);
/* We need to know if an error occurs whilst loading the
symbols, since this means that a valid executable can
not be produced. */
pfn = bfd_set_error_handler (record_bfd_errors);
load_symbols (&s->input_statement, &add);
bfd_set_error_handler (pfn);
if (add.head != NULL)
{
*add.tail = s->next;