From ff7e07447315927772faed9b7ed232321ebc8c39 Mon Sep 17 00:00:00 2001 From: hjl Date: Mon, 18 Aug 2003 18:26:56 +0000 Subject: [PATCH] 2003-08-18 Andreas Schwab * libpei.h (bfd_pe_executable_p): Also recognize efi-app executables. --- bfd/ChangeLog | 5 +++++ bfd/libpei.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2ebddbfd1c..66d6002bb2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-08-18 Andreas Schwab + + * libpei.h (bfd_pe_executable_p): Also recognize efi-app + executables. + 2003-08-17 Hans-Peter Nilsson * simple.c (bfd_simple_get_relocated_section_contents): Move diff --git a/bfd/libpei.h b/bfd/libpei.h index 72fa7b5f72..9ed9c1224e 100644 --- a/bfd/libpei.h +++ b/bfd/libpei.h @@ -332,4 +332,6 @@ bfd_boolean _bfd_XX_bfd_copy_private_section_data PARAMS ((bfd *, asection *, bfd *, asection *)); /* Macro: Returns true if the bfd is a PE executable as opposed to a PE object file. */ -#define bfd_pe_executable_p(abfd) (strncmp ((abfd)->xvec->name, "pei-", 4) == 0) +#define bfd_pe_executable_p(abfd) \ + (strncmp ((abfd)->xvec->name, "pei-", 4) == 0 \ + || strncmp ((abfd)->xvec->name, "efi-app-", 8) == 0) -- 2.11.0