A new board file remote-gdbserver-on-localhost.exp
[deliverable/binutils-gdb.git] / bfd / peicode.h
index 92deb11895836e1d2c613da7bbb705f19dcde21b..200ef5e88476210d46387fe9da242aacb4d8ef59 100644 (file)
@@ -972,6 +972,15 @@ pe_ILF_build_a_bfd (bfd *           abfd,
                                      imp_index);
        }
       else
+#endif
+#ifdef AMD64MAGIC
+      if (magic == AMD64MAGIC)
+       {
+         pe_ILF_make_a_symbol_reloc (&vars, (bfd_vma) jtab[i].offset,
+                                     BFD_RELOC_32_PCREL, (asymbol **) imp_sym,
+                                     imp_index);
+       }
+      else
 #endif
        pe_ILF_make_a_symbol_reloc (&vars, (bfd_vma) jtab[i].offset,
                                    BFD_RELOC_32, (asymbol **) imp_sym,
@@ -1343,7 +1352,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.025102 seconds and 4 git commands to generate.