Use bfd_set_error in last patch.
authorIan Lance Taylor <ian@airs.com>
Thu, 17 Feb 1994 21:50:39 +0000 (21:50 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 17 Feb 1994 21:50:39 +0000 (21:50 +0000)
bfd/elfcode.h

index 33ba86a41532f88d795cd5240fdd27c8ebc45832..fa5ee7332add0e76c453e24414b0f86693c9b9b2 100644 (file)
@@ -2621,7 +2621,7 @@ DEFUN (elf_slurp_symbol_table, (abfd, symptrs),
       if (bfd_read ((PTR) x_symp, sizeof (Elf_External_Sym), symcount, abfd)
          != symcount * sizeof (Elf_External_Sym))
        {
-         bfd_error = system_call_error;
+         bfd_set_error (bfd_error_system_call);
          return false;
        }
       /* Skip first symbol, which is a null dummy.  */