summaryrefslogtreecommitdiffstats
path: root/bfd/libpei.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-08-18 18:26:56 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-08-18 18:26:56 +0000
commit4091ea4e210e42c1d028e2a6143ff74d47e0aedf (patch)
tree0e22e92487abcca8f6924da57ca0cbb6fc45e260 /bfd/libpei.h
parent954a4db8eab026f3fea27de3a6c7857bb35c0a7a (diff)
downloadppe42-binutils-4091ea4e210e42c1d028e2a6143ff74d47e0aedf.tar.gz
ppe42-binutils-4091ea4e210e42c1d028e2a6143ff74d47e0aedf.zip
2003-08-18 Andreas Schwab <schwab@suse.de>
* libpei.h (bfd_pe_executable_p): Also recognize efi-app executables.
Diffstat (limited to 'bfd/libpei.h')
-rw-r--r--bfd/libpei.h4
1 files changed, 3 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud