Index: tc-arm.c =================================================================== RCS file: /cvs/src/src/gas/config/tc-arm.c,v retrieving revision 1.378 diff -a -u -r1.378 tc-arm.c --- tc-arm.c 18 Mar 2009 15:28:24 -0000 1.378 +++ tc-arm.c 27 Mar 2009 14:21:39 -0000 @@ -2417,6 +2417,7 @@ /* Find the real, Thumb encoded start of a Thumb function. */ +#ifdef OBJ_COFF static symbolS * find_real_start (symbolS * symbolP) { @@ -2449,6 +2450,7 @@ return new_target; } +#endif static void opcode_select (int width) @@ -9079,6 +9081,7 @@ inst.reloc.type = BFD_RELOC_THUMB_PCREL_BRANCH23; inst.reloc.pc_rel = 1; +#if defined(OBJ_COFF) /* If the destination of the branch is a defined symbol which does not have the THUMB_FUNC attribute, then we must be calling a function which has the (interfacearm) attribute. We look for the Thumb entry point to that @@ -9089,6 +9092,7 @@ && ! THUMB_IS_FUNC (inst.reloc.exp.X_add_symbol)) inst.reloc.exp.X_add_symbol = find_real_start (inst.reloc.exp.X_add_symbol); +#endif } static void @@ -19889,7 +19893,7 @@ fix_new_exp (frag, where, (int) size, exp, pcrel, type); } -#if defined OBJ_COFF || defined OBJ_ELF +#if defined (OBJ_COFF) void arm_validate_fix (fixS * fixP) { Index: tc-arm.h =================================================================== RCS file: /cvs/src/src/gas/config/tc-arm.h,v retrieving revision 1.48 diff -a -u -r1.48 tc-arm.h --- tc-arm.h 19 Jan 2009 15:46:31 -0000 1.48 +++ tc-arm.h 27 Mar 2009 14:21:39 -0000 @@ -249,8 +249,10 @@ # define tc_fix_adjustable(FIX) arm_fix_adjustable (FIX) /* Values passed to md_apply_fix don't include the symbol value. */ # define MD_APPLY_SYM_VALUE(FIX) 0 -# define TC_VALIDATE_FIX(FIX, SEGTYPE, LABEL) arm_validate_fix (FIX) +#endif +#ifdef OBJ_COFF +# define TC_VALIDATE_FIX(FIX, SEGTYPE, LABEL) arm_validate_fix (FIX) #endif #define MD_PCREL_FROM_SECTION(F,S) md_pcrel_from_section(F,S)