summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2003-08-18 18:26:56 +0000
committerH.J. Lu <hjl@lucon.org>2003-08-18 18:26:56 +0000
commit4b16c6f5794cd8cdb48ff118c11005968819be1e (patch)
treede54a700f87e0ed02b4da00478be9b7d195bd8c6 /bfd
parent701bd1cef3076ee03b85a9a656067243c5092b42 (diff)
downloadgdb-4b16c6f5794cd8cdb48ff118c11005968819be1e.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')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/libpei.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2ebddbfd1cc..66d6002bb22 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-18 Andreas Schwab <schwab@suse.de>
+
+ * libpei.h (bfd_pe_executable_p): Also recognize efi-app
+ executables.
+
2003-08-17 Hans-Peter Nilsson <hp@bitrange.com>
* simple.c (bfd_simple_get_relocated_section_contents): Move
diff --git a/bfd/libpei.h b/bfd/libpei.h
index 72fa7b5f728..9ed9c1224e7 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)