* elf-m10300.c (mn10300_elf_relax_section): Fix check for an

immediate move into an address register.
This commit is contained in:
Nick Clifton 2011-11-08 15:07:17 +00:00
parent 409ff343a4
commit 6746a626dc
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-11-08 Nick Clifton <nickc@redhat.com>
* elf-m10300.c (mn10300_elf_relax_section): Fix check for an
immediate move into an address register.
2011-11-09 Alan Modra <amodra@gmail.com>
* elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in

View File

@ -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;