From: John Gilmore Date: Sun, 29 Mar 1992 18:45:43 +0000 (+0000) Subject: * bout.c, coff-a29k.c, coff-i960.c: Lint. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c86190dd2a60e0d29584ca791454d409f5d1e0ad;p=binutils-gdb.git * bout.c, coff-a29k.c, coff-i960.c: Lint. * configure.in: Add new host and target configs. * elf.c (bfd_prstatus, bfd_fpregset): Avoid typename of register structs, which vary; just use member name. (elf_object_p, elf_core_file_p): Lint, fix comments. * config/sparc-elf.mt, hosts/sysv4.h: New config files. --- diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c index 4189c4ab27c..c5b79d95ddc 100644 --- a/bfd/coff-a29k.c +++ b/bfd/coff-a29k.c @@ -104,7 +104,7 @@ DEFUN(a29k_reloc,(abfd, reloc_entry, symbol_in, data, input_section), return(bfd_reloc_dangerous); } - insn = bfd_get_32(abfd, data + reloc_entry->address); + insn = bfd_get_32(abfd, (bfd_byte *)data + reloc_entry->address); sym_value = get_symbol_value(symbol_in); switch (r_type) @@ -194,7 +194,7 @@ DEFUN(a29k_reloc,(abfd, reloc_entry, symbol_in, data, input_section), return (bfd_reloc_dangerous); } - bfd_put_32(abfd, insn, data+reloc_entry->address); + bfd_put_32(abfd, insn, (bfd_byte *)data + reloc_entry->address); return(bfd_reloc_ok); }