Disambiguate test for relaxation type.
* elf32-rl78.c (rl78_elf_relax_section): Disambiguate test for relaxation type.
This commit is contained in:
parent
7f78eb340a
commit
32e79d3920
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-08-26 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* elf32-rl78.c (rl78_elf_relax_section): Disambiguate test for
|
||||
relaxation type.
|
||||
|
||||
2014-08-26 Jiong Wang <jiong.wang@arm.com>
|
||||
|
||||
* elfnn-aarch64.c (elfNN_aarch64_check_relocs): Initialize non_got_ref
|
||||
|
|
|
@ -2199,7 +2199,7 @@ rl78_elf_relax_section
|
|||
61 F3 EF ad SKNH ; BR $rel8
|
||||
*/
|
||||
|
||||
if (irel->r_addend & RL78_RELAXA_BRA)
|
||||
if ((irel->r_addend & RL78_RELAXA_MASK) == RL78_RELAXA_BRA)
|
||||
{
|
||||
/* SKIP opcodes that skip non-branches will have a relax tag
|
||||
but no corresponding symbol to relax against; we just
|
||||
|
@ -2334,7 +2334,7 @@ rl78_elf_relax_section
|
|||
|
||||
}
|
||||
|
||||
if (irel->r_addend & RL78_RELAXA_ADDR16)
|
||||
if ((irel->r_addend & RL78_RELAXA_MASK) == RL78_RELAXA_ADDR16)
|
||||
{
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* Some insns have both a 16-bit address operand and an 8-bit
|
||||
|
|
Loading…
Reference in a new issue