Fix field size for TLSDESC_CALL
[deliverable/binutils-gdb.git] / bfd / peicode.h
index c3d13f81bcc25b5180b75396c38590fa3f3aafc3..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.
@@ -568,6 +568,7 @@ pe_ILF_make_a_symbol (pe_ILF_vars *  vars,
   ent->u.syment.n_sclass          = sclass;
   ent->u.syment.n_scnum           = section->target_index;
   ent->u.syment._n._n_n._n_offset = (bfd_hostptr_t) sym;
+  ent->is_sym = TRUE;
 
   sym->symbol.the_bfd = vars->abfd;
   sym->symbol.name    = vars->string_ptr;
@@ -1342,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.024511 seconds and 4 git commands to generate.