From 0a5ffc45680c62f19448a2d2f49d063715444a28 Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 12 Feb 2015 03:16:57 +0000 Subject: MFC r272519: Add movw and movt relocations to the list of relocations against function names that must not be adjusted. --- contrib/binutils/gas/config/tc-arm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'contrib/binutils') diff --git a/contrib/binutils/gas/config/tc-arm.c b/contrib/binutils/gas/config/tc-arm.c index 239d753..8e97b37 100644 --- a/contrib/binutils/gas/config/tc-arm.c +++ b/contrib/binutils/gas/config/tc-arm.c @@ -19373,6 +19373,12 @@ arm_fix_adjustable (fixS * fixP) || fixP->fx_r_type == BFD_RELOC_ARM_LDR_PC_G0) return 0; + if (fixP->fx_r_type == BFD_RELOC_ARM_MOVW + || fixP->fx_r_type == BFD_RELOC_ARM_MOVT + || fixP->fx_r_type == BFD_RELOC_ARM_THUMB_MOVW + || fixP->fx_r_type == BFD_RELOC_ARM_THUMB_MOVT) + return 0; + return 1; } #endif /* defined (OBJ_ELF) || defined (OBJ_COFF) */ -- cgit v1.1