2007-06-18 H.J. Lu <hongjiu.lu@intel.com>
commita5608dd1458f64afe836afecfb3422ec0fedf5fd
authorH.J. Lu <hjl@lucon.org>
Mon, 18 Jun 2007 16:26:28 +0000 (18 16:26 +0000)
committerH.J. Lu <hjl@lucon.org>
Mon, 18 Jun 2007 16:26:28 +0000 (18 16:26 +0000)
tree9dfb431f559b4bc6b68e64c077284638e081f7ca
parent2091fcb4150b2118d85214c2a313d6577c49f0c4
2007-06-18  H.J. Lu  <hongjiu.lu@intel.com>

* libpei.h (_bfd_XXi_final_link_postscript): Remove
duplication.
(bfd_target_pei_p): New.
(bfd_target_pei_arch): New
(bfd_target_efi_p): Likewise.
(bfd_target_efi_arch): New
(bfd_pe_executable_p): Use bfd_target_pei_p and
bfd_target_efi_p.

* peicode.h (arch_type): New enum.
(pe_arch): New function.
(pe_bfd_object_p): Don't match PE/EFI target with EFI/PE file
if there is an EFI/PE target.
bfd/ChangeLog
bfd/libpei.h
bfd/peicode.h