aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-05-11 12:51:04 +0100
committerNick Clifton <nickc@redhat.com>2016-05-11 12:53:12 +0100
commita6684f0dddb292873f962dc36b20e6db00ef6b09 (patch)
tree907b253ccc181c667eeed048f3f7650463fc0984 /gas/config
parent4e7fbb34f0546360e86b56dcd32b4d6478662b41 (diff)
downloadgdb-a6684f0dddb292873f962dc36b20e6db00ef6b09.zip
gdb-a6684f0dddb292873f962dc36b20e6db00ef6b09.tar.gz
gdb-a6684f0dddb292873f962dc36b20e6db00ef6b09.tar.bz2
Ensure that padding in the constant pool uses constant values.
PR target/20068 * config/tc-arm.c (add_to_lit_pool): Ensure that the padding added to the pool uses O_constant. * testsuite/gas/arm/pr20068.s: New test. * testsuite/gas/arm/pr20068.d: Test driver.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index b5f3786..3c7e014 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -3288,6 +3288,7 @@ add_to_lit_pool (unsigned int nbytes)
}
pool->literals[entry] = inst.reloc.exp;
+ pool->literals[entry].X_op = O_constant;
pool->literals[entry].X_add_number = 0;
pool->literals[entry++].X_md = (PADDING_SLOT << 8) | 4;
pool->next_free_entry += 1;