* config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
authorNick Clifton <nickc@redhat.com>
Fri, 22 Feb 2008 15:14:44 +0000 (15:14 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 22 Feb 2008 15:14:44 +0000 (15:14 +0000)
        targeted ARM ports.

gas/ChangeLog
gas/config/tc-arm.c

index c7df07e6a472084f721c8da2f4119c0936c74d65..50895c54fdfea13cf718430a001de75f737974f2 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-22  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
+       targeted ARM ports.
+
 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        * doc/c-i386.texi: Update -march= and .arch.
index 4d8eb42ba5a423dcd23125edbdc415e7690e70af..b6580057118fd64164e1190774daf09f737ff00c 100644 (file)
@@ -6773,8 +6773,10 @@ do_bx (void)
   if (object_arch && !ARM_CPU_HAS_FEATURE (*object_arch, arm_ext_v5))
       want_reloc = TRUE;
 
+#ifdef OBJ_ELF
   if (EF_ARM_EABI_VERSION (meabi_flags) < EF_ARM_EABI_VER4)
     want_reloc = FALSE;
+#endif
 
   if (want_reloc)
     inst.reloc.type = BFD_RELOC_ARM_V4BX;