This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Fix compile time error building non-ELF targeted ARM ports,From: Nick Clifton <nickc@redhat.com>
- From: Nick Clifton <nickc at redhat dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Fri, 22 Feb 2008 15:16:18 +0000
- Subject: PATCH: Fix compile time error building non-ELF targeted ARM ports,From: Nick Clifton <nickc@redhat.com>
Hi Guys,
The gas ARM port stopped building recently for non-ELF based targets
(eg arm-pe) because there was code in the do_bx() function to test
the ELF-only EF_ARM_EABI_VERSION macro. I am applying the attached
patch as an obvious fix.
Cheers
Nick
gas/ChangeLog
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.
Index: gas/config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.346
diff -c -3 -p -r1.346 tc-arm.c
*** gas/config/tc-arm.c 20 Feb 2008 15:17:56 -0000 1.346
--- gas/config/tc-arm.c 22 Feb 2008 15:11:35 -0000
*************** do_bx (void)
*** 6773,6780 ****
--- 6773,6782 ----
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;