* ldlang.c (record_bfd_errors): Remove.
[binutils-gdb.git] / ld / ldlang.c
index 3ef9e5129019d7ffd19639829c3ad21b3739c0b3..96fe887317a636baeedd201d49d8c186204339fe 100644 (file)
@@ -127,7 +127,6 @@ static bfd_vma size_input_section
           fill_type, bfd_vma, boolean));
 static void lang_finish PARAMS ((void));
 static void ignore_bfd_errors PARAMS ((const char *, ...));
-static void record_bfd_errors PARAMS ((const char *, ...));
 static void lang_check PARAMS ((void));
 static void lang_common PARAMS ((void));
 static boolean lang_one_common PARAMS ((struct bfd_link_hash_entry *, PTR));
@@ -1914,7 +1913,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 +1929,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;
@@ -3470,53 +3461,6 @@ lang_finish ()
     }
 }
 
-/* This is the routine to handle BFD error messages.  */
-
-#ifdef ANSI_PROTOTYPES
-
-static void
-record_bfd_errors (const char *s, ...)
-{
-  va_list p;
-
-  einfo ("%P: ");
-
-  va_start (p, s);
-
-  vfprintf (stderr, s, p);
-
-  va_end (p);
-
-  fprintf (stderr, "\n");
-
-  einfo ("%X");
-}
-
-#else /* ! defined (ANSI_PROTOTYPES) */
-
-static void
-record_bfd_errors (va_alist)
-     va_dcl
-{
-  va_list p;
-  const char *s;
-
-  einfo ("%P: ");
-
-  va_start (p);
-
-  s = va_arg (p, const char *);
-  vfprintf (stderr, s, p);
-
-  va_end (p);
-
-  fprintf (stderr, "\n");
-
-  einfo ("%X");
-}
-
-#endif /* ! defined (ANSI_PROTOTYPES) */
-
 /* This is a small function used when we want to ignore errors from
    BFD.  */