aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorWill Newton <willnewton@sourceware.org>2013-03-21 18:39:35 +0000
committerWill Newton <willnewton@sourceware.org>2013-03-21 18:39:35 +0000
commit4755303e509dc866cb7fd26e9a27c159acffe30d (patch)
tree6d05d7019b646e188c2cb544d8b6355ac91f6ca2 /gas/config
parentbd712aed2f88ab824d403c55a212c2be3f41a335 (diff)
downloadgdb-4755303e509dc866cb7fd26e9a27c159acffe30d.zip
gdb-4755303e509dc866cb7fd26e9a27c159acffe30d.tar.gz
gdb-4755303e509dc866cb7fd26e9a27c159acffe30d.tar.bz2
gas/ChangeLog:
2013-03-21 Will Newton <will.newton@linaro.org> * config/tc-arm.c (encode_thumb32_addr_mode): Emit an error for all pc-relative str instructions in Thumb mode. gas/testsuite/ChangeLog: 2013-03-21 Will Newton <will.newton@linaro.org> * gas/arm/thumb2_relax.d: Strip out invalid pc-relative strs. * gas/arm/thumb2_relax.s: Likewise. * gas/arm/thumb32.d: Likewise. * gas/arm/thumb32.l: Likewise. * gas/arm/thumb32.s: Likewise. * gas/arm/thumb2_str-bad.d: New file. * gas/arm/thumb2_str-bad.l: Likewise. * gas/arm/thumb2_str-bad.s: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index ee09e14..f883b86 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -9471,8 +9471,8 @@ encode_thumb32_addr_mode (int i, bfd_boolean is_t, bfd_boolean is_d)
constraint (is_pc && inst.operands[i].writeback, BAD_PC_WRITEBACK);
constraint (is_t && inst.operands[i].writeback,
_("cannot use writeback with this instruction"));
- constraint (is_pc && ((inst.instruction & THUMB2_LOAD_BIT) == 0)
- && !inst.reloc.pc_rel, BAD_PC_ADDRESSING);
+ constraint (is_pc && ((inst.instruction & THUMB2_LOAD_BIT) == 0),
+ BAD_PC_ADDRESSING);
if (is_d)
{