ld: don't use ia64 register name in expression of pr16322 test
[deliverable/binutils-gdb.git] / bfd / peicode.h
index 836535355541a307e0863f7ed820935956f89dc1..e36568aa2070ab5fa5282c0ddcf19f934d039a2e 100644 (file)
@@ -1,5 +1,5 @@
 /* Support for the generic parts of PE/PEI, for BFD.
-   Copyright (C) 1995-2014 Free Software Foundation, Inc.
+   Copyright (C) 1995-2015 Free Software Foundation, Inc.
    Written by Cygnus Solutions.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -1343,7 +1343,10 @@ pe_bfd_object_p (bfd * abfd)
          != (bfd_size_type) opt_hdr_size)
        return NULL;
 
+      bfd_set_error (bfd_error_no_error);
       bfd_coff_swap_aouthdr_in (abfd, opthdr, & internal_a);
+      if (bfd_get_error () != bfd_error_no_error)
+       return NULL;
     }
 
   return coff_real_object_p (abfd, internal_f.f_nscns, &internal_f,
This page took 0.024078 seconds and 4 git commands to generate.