aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mn10300.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-09-08 11:07:39 +0000
committerNick Clifton <nickc@redhat.com>2010-09-08 11:07:39 +0000
commitab3e2b4a1c329818752fe855215d81fe21f88a8b (patch)
treeb371c88200c2375876cdc663597c2fe31ccb878f /gas/config/tc-mn10300.c
parent2ba6fc7f56f4c6c38f00f409a03dd1b3d5b6762d (diff)
downloadgdb-ab3e2b4a1c329818752fe855215d81fe21f88a8b.zip
gdb-ab3e2b4a1c329818752fe855215d81fe21f88a8b.tar.gz
gdb-ab3e2b4a1c329818752fe855215d81fe21f88a8b.tar.bz2
PR gas/11973
* config/tc-mn10300.c (md_convert_frag): Zero out top two bytes of long call instruction's displacement.
Diffstat (limited to 'gas/config/tc-mn10300.c')
-rw-r--r--gas/config/tc-mn10300.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c
index 74ede3a..bf77aa9 100644
--- a/gas/config/tc-mn10300.c
+++ b/gas/config/tc-mn10300.c
@@ -689,6 +689,8 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED,
fragP->fr_literal[offset] = 0xdd;
fragP->fr_literal[offset + 5] = fragP->fr_literal[offset + 3];
fragP->fr_literal[offset + 6] = fragP->fr_literal[offset + 4];
+ fragP->fr_literal[offset + 3] = 0;
+ fragP->fr_literal[offset + 4] = 0;
fix_new (fragP, fragP->fr_fix + 1, 4, fragP->fr_symbol,
fragP->fr_offset + 1, 1, BFD_RELOC_32_PCREL);