From ab3e2b4a1c329818752fe855215d81fe21f88a8b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 8 Sep 2010 11:07:39 +0000 Subject: [PATCH] PR gas/11973 * config/tc-mn10300.c (md_convert_frag): Zero out top two bytes of long call instruction's displacement. --- gas/ChangeLog | 6 ++++++ gas/config/tc-mn10300.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 6774434b8a4..41c038371a0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2010-09-08 Nick Clifton + + PR gas/11973 + * config/tc-mn10300.c (md_convert_frag): Zero out top two bytes of + long call instruction's displacement. + 2010-09-03 H.J. Lu PR gas/11974 diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c index 74ede3ae55b..bf77aa9527d 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); -- 2.30.2