From: Nick Clifton Date: Tue, 8 Nov 2011 15:07:17 +0000 (+0000) Subject: * elf-m10300.c (mn10300_elf_relax_section): Fix check for an X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6746a626dcc77ce098ae890427f7991940158ca5;p=binutils-gdb.git * elf-m10300.c (mn10300_elf_relax_section): Fix check for an immediate move into an address register. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 14db95fe397..6f7fdac9458 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-11-08 Nick Clifton + + * elf-m10300.c (mn10300_elf_relax_section): Fix check for an + immediate move into an address register. + 2011-11-09 Alan Modra * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c index c2dc5835ea6..fa33b4a2fbe 100644 --- a/bfd/elf-m10300.c +++ b/bfd/elf-m10300.c @@ -3604,8 +3604,8 @@ mn10300_elf_relax_section (bfd *abfd, && (value & 0x8000)) continue; - /* mov imm16, an zero-extends the immediate. */ - if (code == 0xdc + /* "mov imm16, an" zero-extends the immediate. */ + if ((code & 0xfc) == 0xdc && (long) value < 0) continue;