From 5ad3420347a8fe96a689bf14b93a9fec720be9ae Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 22 Feb 2008 15:14:44 +0000 Subject: [PATCH] * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF targeted ARM ports. --- gas/ChangeLog | 5 +++++ gas/config/tc-arm.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index c7df07e6a47..50895c54fdf 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2008-02-22 Nick Clifton + + * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF + targeted ARM ports. + 2008-02-18 H.J. Lu * doc/c-i386.texi: Update -march= and .arch. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 4d8eb42ba5a..b6580057118 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -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; -- 2.30.2