2007-07-04 H.J. Lu <hongjiu.lu@intel.com>

* peicode.h (pe_bfd_object_p): Don't check PE vs. EFI target
	if arch is unknown.
This commit is contained in:
H.J. Lu 2007-07-05 02:50:02 +00:00
parent e4e4a5d1f4
commit a93221e521
2 changed files with 23 additions and 14 deletions

View File

@ -1,3 +1,8 @@
2007-07-04 H.J. Lu <hongjiu.lu@intel.com>
* peicode.h (pe_bfd_object_p): Don't check PE vs. EFI target
if arch is unknown.
2007-07-04 Nick Clifton <nickc@redhat.com>
Import this patch from an internal tree:

View File

@ -1342,6 +1342,10 @@ pe_bfd_object_p (bfd * abfd)
else
arch = pe_arch (bfd_target_pei_arch (abfd->xvec));
/* Don't check PE vs. EFI if arch is unknown. */
if (arch == arch_type_unknown)
return target;
for (target_ptr = bfd_target_vector; *target_ptr != NULL;
target_ptr++)
{