This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Recognize the armv7 pe magic
- From: Martin Storsjo <martin at martin dot st>
- To: binutils at sourceware dot org
- Date: Thu, 15 Nov 2012 13:31:43 +0200
- Subject: [PATCH] Recognize the armv7 pe magic
---
include/coff/arm.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/coff/arm.h b/include/coff/arm.h
index 9c34005..9dabce0 100644
--- a/include/coff/arm.h
+++ b/include/coff/arm.h
@@ -81,9 +81,10 @@
#define ARMPEMAGIC 0x1c0
#define THUMBPEMAGIC 0x1c2
+#define ARMV7MAGIC 0x1c4
#undef ARMBADMAG
-#define ARMBADMAG(x) (((x).f_magic != ARMMAGIC) && ((x).f_magic != ARMPEMAGIC) && ((x).f_magic != THUMBPEMAGIC))
+#define ARMBADMAG(x) (((x).f_magic != ARMMAGIC) && ((x).f_magic != ARMPEMAGIC) && ((x).f_magic != THUMBPEMAGIC) && ((x).f_magic != ARMV7MAGIC))
#define OMAGIC 0404 /* object files, eg as output */
#define ZMAGIC 0413 /* demand load format, eg normal ld output */