mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
* elf32-sh.c (sh_elf_reloc_loop): Warning removal.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2000-08-03 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
|
* elf32-sh.c (sh_elf_reloc_loop): Warning removal.
|
||||||
|
|
||||||
2000-07-31 Jason Eckhardt <jle@cygnus.com>
|
2000-07-31 Jason Eckhardt <jle@cygnus.com>
|
||||||
|
|
||||||
* reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
|
* reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
|
||||||
|
@ -455,7 +455,7 @@ static reloc_howto_type sh_elf_howto_table[] =
|
|||||||
static bfd_reloc_status_type
|
static bfd_reloc_status_type
|
||||||
sh_elf_reloc_loop (r_type, input_bfd, input_section, contents, addr,
|
sh_elf_reloc_loop (r_type, input_bfd, input_section, contents, addr,
|
||||||
symbol_section, start, end)
|
symbol_section, start, end)
|
||||||
int r_type;
|
int r_type ATTRIBUTE_UNUSED;
|
||||||
bfd *input_bfd;
|
bfd *input_bfd;
|
||||||
asection *input_section;
|
asection *input_section;
|
||||||
bfd_byte *contents;
|
bfd_byte *contents;
|
||||||
@ -517,7 +517,7 @@ sh_elf_reloc_loop (r_type, input_bfd, input_section, contents, addr,
|
|||||||
for (last_ptr = ptr, ptr -= 4; ptr >= start_ptr && IS_PPI (ptr);)
|
for (last_ptr = ptr, ptr -= 4; ptr >= start_ptr && IS_PPI (ptr);)
|
||||||
ptr -= 2;
|
ptr -= 2;
|
||||||
ptr += 2;
|
ptr += 2;
|
||||||
diff = last_ptr - ptr >> 1;
|
diff = (last_ptr - ptr) >> 1;
|
||||||
cum_diff += diff & 1;
|
cum_diff += diff & 1;
|
||||||
cum_diff += diff;
|
cum_diff += diff;
|
||||||
}
|
}
|
||||||
@ -554,7 +554,7 @@ sh_elf_reloc_loop (r_type, input_bfd, input_section, contents, addr,
|
|||||||
if (x < -128 || x > 127)
|
if (x < -128 || x > 127)
|
||||||
return bfd_reloc_overflow;
|
return bfd_reloc_overflow;
|
||||||
|
|
||||||
x = insn & ~0xff | x & 0xff;
|
x = (insn & ~0xff) | (x & 0xff);
|
||||||
bfd_put_16 (input_bfd, x, contents + addr);
|
bfd_put_16 (input_bfd, x, contents + addr);
|
||||||
|
|
||||||
return bfd_reloc_ok;
|
return bfd_reloc_ok;
|
||||||
|
Reference in New Issue
Block a user