mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
Wrong operand for SADDR (rl78)
PR 27254 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of offset for the R_RL78_RH_SADDR relocation.
This commit is contained in:

committed by
Nick Clifton

parent
72a51a0603
commit
34c10233cd
@ -1,3 +1,9 @@
|
|||||||
|
2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
|
||||||
|
|
||||||
|
PR 27254
|
||||||
|
* elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
|
||||||
|
offset for the R_RL78_RH_SADDR relocation.
|
||||||
|
|
||||||
2021-01-29 Alan Modra <amodra@gmail.com>
|
2021-01-29 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 27271
|
PR 27271
|
||||||
|
@ -923,7 +923,7 @@ rl78_elf_relocate_section
|
|||||||
|
|
||||||
case R_RL78_RH_SADDR:
|
case R_RL78_RH_SADDR:
|
||||||
RANGE (0xffe20, 0xfff1f);
|
RANGE (0xffe20, 0xfff1f);
|
||||||
OP (0) = relocation & 0xff;
|
OP (0) = (relocation - 0x20) & 0xff;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Complex reloc handling: */
|
/* Complex reloc handling: */
|
||||||
|
Reference in New Issue
Block a user