diff options
author | H.J. Lu <hjl@lucon.org> | 2003-08-18 18:26:56 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2003-08-18 18:26:56 +0000 |
commit | c0fd6b53141a61fdbc40cbd67105d71932b80849 (patch) | |
tree | 53ad528b99bbc14de98c6fe9b047150f1154b813 /bfd/libpei.h | |
parent | ca89bc575183628437148efd0007c69d8a1c809e (diff) | |
download | binutils-redhat-c0fd6b53141a61fdbc40cbd67105d71932b80849.tar.gz |
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.h | 4 |
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) |