* elf32-sparc.c (sparc_elf_wdisp16_reloc): Cast to bfd_byte *, not
char *, when calling bfd_get_32 and bfd_put_32. * sunos.c (sunos_scan_dynamic_symbol): Cast contents to char * when calling strcpy.
This commit is contained in:
parent
b3c77578dc
commit
9b5ec8b1e0
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Fri Oct 3 11:23:47 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* elf32-sparc.c (sparc_elf_wdisp16_reloc): Cast to bfd_byte *, not
|
||||||
|
char *, when calling bfd_get_32 and bfd_put_32.
|
||||||
|
* sunos.c (sunos_scan_dynamic_symbol): Cast contents to char *
|
||||||
|
when calling strcpy.
|
||||||
|
|
||||||
Thu Oct 2 16:15:50 1997 Doug Evans <dje@canuck.cygnus.com>
|
Thu Oct 2 16:15:50 1997 Doug Evans <dje@canuck.cygnus.com>
|
||||||
|
|
||||||
* reloc.c (bfd_check_overflow): New function.
|
* reloc.c (bfd_check_overflow): New function.
|
||||||
|
|
|
@ -275,10 +275,10 @@ sparc_elf_wdisp16_reloc (abfd,
|
||||||
+ input_section->output_offset);
|
+ input_section->output_offset);
|
||||||
relocation -= reloc_entry->address;
|
relocation -= reloc_entry->address;
|
||||||
|
|
||||||
x = bfd_get_32 (abfd, (char *) data + reloc_entry->address);
|
x = bfd_get_32 (abfd, (bfd_byte *) data + reloc_entry->address);
|
||||||
x |= ((((relocation >> 2) & 0xc000) << 6)
|
x |= ((((relocation >> 2) & 0xc000) << 6)
|
||||||
| ((relocation >> 2) & 0x3fff));
|
| ((relocation >> 2) & 0x3fff));
|
||||||
bfd_put_32 (abfd, x, (char *) data + reloc_entry->address);
|
bfd_put_32 (abfd, x, (bfd_byte *) data + reloc_entry->address);
|
||||||
|
|
||||||
if ((bfd_signed_vma) relocation < - 0x40000
|
if ((bfd_signed_vma) relocation < - 0x40000
|
||||||
|| (bfd_signed_vma) relocation > 0x3ffff)
|
|| (bfd_signed_vma) relocation > 0x3ffff)
|
||||||
|
|
Loading…
Add table
Reference in a new issue