[PATCH 3/9] bfd: Set the armv7 pe magic if targeting the armv7 version of arm/pe/coff

Martin Storsjo martin@martin.st
Wed May 1 23:39:00 GMT 2013


---
 bfd/coffcode.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 96b2c21..d520f0d 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -2886,7 +2886,9 @@ coff_set_flags (bfd * abfd,
 
 #ifdef ARMMAGIC
     case bfd_arch_arm:
-#ifdef ARM_WINCE
+#ifdef ARMV7_WIN
+      * magicp = ARMV7PEMAGIC;
+#elif defined(ARM_WINCE)
       * magicp = ARMPEMAGIC;
 #else
       * magicp = ARMMAGIC;
-- 
1.7.9.4



More information about the Binutils mailing list