diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-10-03 15:25:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-10-03 15:25:10 +0000 |
commit | 9b5ec8b1e0c20a9cfb9e65ea48e95a804b3666cc (patch) | |
tree | 27f1240bd7de4ed7d1ef15d8f3f76fb076f12585 /bfd/elf32-sparc.c | |
parent | b3c77578dc408e024f1a38edfb03f3fb78bb11b6 (diff) | |
download | gdb-9b5ec8b1e0c20a9cfb9e65ea48e95a804b3666cc.zip gdb-9b5ec8b1e0c20a9cfb9e65ea48e95a804b3666cc.tar.gz gdb-9b5ec8b1e0c20a9cfb9e65ea48e95a804b3666cc.tar.bz2 |
* 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.
Diffstat (limited to 'bfd/elf32-sparc.c')
-rw-r--r-- | bfd/elf32-sparc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-sparc.c b/bfd/elf32-sparc.c index 3ac2928..82a466b 100644 --- a/bfd/elf32-sparc.c +++ b/bfd/elf32-sparc.c @@ -275,10 +275,10 @@ sparc_elf_wdisp16_reloc (abfd, + input_section->output_offset); 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) | ((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 || (bfd_signed_vma) relocation > 0x3ffff) |