diff options
author | ian <ian@FreeBSD.org> | 2015-02-12 03:16:57 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2015-02-12 03:16:57 +0000 |
commit | 0a5ffc45680c62f19448a2d2f49d063715444a28 (patch) | |
tree | 4b4a0fee15353f6dad5a7d4dc6abfe9d365d6894 /contrib/binutils | |
parent | 4b6f93ca030bd949f623c442b3246fae2669a582 (diff) | |
download | FreeBSD-src-0a5ffc45680c62f19448a2d2f49d063715444a28.zip FreeBSD-src-0a5ffc45680c62f19448a2d2f49d063715444a28.tar.gz |
MFC r272519:
Add movw and movt relocations to the list of relocations against function
names that must not be adjusted.
Diffstat (limited to 'contrib/binutils')
-rw-r--r-- | contrib/binutils/gas/config/tc-arm.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) */ |