mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
* elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
|
||||||
|
|
||||||
|
* elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
|
||||||
|
|
||||||
2000-05-14 Philip Blundell <philb@gnu.org>
|
2000-05-14 Philip Blundell <philb@gnu.org>
|
||||||
|
|
||||||
* config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
|
* config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
|
||||||
|
@ -1394,6 +1394,13 @@ sh_elf_relax_delete_bytes (abfd, sec, addr, count)
|
|||||||
bfd_put_16 (abfd, insn, contents + nraddr);
|
bfd_put_16 (abfd, insn, contents + nraddr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case R_SH_SWITCH8:
|
||||||
|
voff += adjust;
|
||||||
|
if (voff < 0 || voff >= 0xff)
|
||||||
|
overflow = true;
|
||||||
|
bfd_put_8 (abfd, voff, contents + nraddr);
|
||||||
|
break;
|
||||||
|
|
||||||
case R_SH_SWITCH16:
|
case R_SH_SWITCH16:
|
||||||
voff += adjust;
|
voff += adjust;
|
||||||
if (voff < - 0x8000 || voff >= 0x8000)
|
if (voff < - 0x8000 || voff >= 0x8000)
|
||||||
|
Reference in New Issue
Block a user