aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-05-31 21:14:59 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-05-31 21:14:59 +0000
commit5929ebc0033010ba5ae5cbf03bce16232726adbd (patch)
treeb20c58730d31bb8911f4710c8853235d409f8d7f /ld/ldlang.c
parent9fd7143a93ad1c27ac603a7cb050aec0f3855191 (diff)
downloadfsf-binutils-gdb-5929ebc0033010ba5ae5cbf03bce16232726adbd.zip
fsf-binutils-gdb-5929ebc0033010ba5ae5cbf03bce16232726adbd.tar.gz
fsf-binutils-gdb-5929ebc0033010ba5ae5cbf03bce16232726adbd.tar.bz2
2001-05-31 H.J. Lu <hjl@gnu.org>
* ldlang.c (open_input_bfds): Don't change the bfd error handler whilst loading symbols.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 3ef9e51..5d7b877 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -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;