mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
* elf32-rl78.c (rl78_elf_relocate_section): Fix OPsub math.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2013-06-11 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
|
* elf32-rl78.c (rl78_elf_relocate_section): Fix OPsub math.
|
||||||
|
|
||||||
2013-06-11 Will Newton <will.newton@linaro.org>
|
2013-06-11 Will Newton <will.newton@linaro.org>
|
||||||
|
|
||||||
* elf64-aarch64.c (elf_aarch64_get_local_sym_hash): Use
|
* elf64-aarch64.c (elf_aarch64_get_local_sym_hash): Use
|
||||||
|
@ -810,10 +810,13 @@ rl78_elf_relocate_section
|
|||||||
{
|
{
|
||||||
int32_t tmp1, tmp2;
|
int32_t tmp1, tmp2;
|
||||||
|
|
||||||
RL78_STACK_POP (tmp2);
|
/* For the expression "A - B", the assembler pushes A,
|
||||||
RL78_STACK_POP (tmp1);
|
then B, then OPSUB. So the first op we pop is B, not
|
||||||
tmp2 -= tmp1;
|
A. */
|
||||||
RL78_STACK_PUSH (tmp2);
|
RL78_STACK_POP (tmp2); /* B */
|
||||||
|
RL78_STACK_POP (tmp1); /* A */
|
||||||
|
tmp1 -= tmp2; /* A - B */
|
||||||
|
RL78_STACK_PUSH (tmp1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user