From 851cde108c53d54157e83462f5e76a08817f26ab Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Mon, 15 May 2000 23:10:59 +0000 Subject: * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8. --- bfd/elf32-sh.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bfd/elf32-sh.c') diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index 6913fa4..7fe30ef 100644 --- a/bfd/elf32-sh.c +++ b/bfd/elf32-sh.c @@ -1394,6 +1394,13 @@ sh_elf_relax_delete_bytes (abfd, sec, addr, count) bfd_put_16 (abfd, insn, contents + nraddr); 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: voff += adjust; if (voff < - 0x8000 || voff >= 0x8000) -- cgit v1.1