aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-a29k.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-03-29 18:45:43 +0000
committerJohn Gilmore <gnu@cygnus>1992-03-29 18:45:43 +0000
commitc86190dd2a60e0d29584ca791454d409f5d1e0ad (patch)
tree9e06a9d7c0acdcd87e78331b61a19ee8d40cc31a /bfd/coff-a29k.c
parentd4acec2c222df1461b86f72a0e7f7de8be74eeca (diff)
downloadgdb-c86190dd2a60e0d29584ca791454d409f5d1e0ad.zip
gdb-c86190dd2a60e0d29584ca791454d409f5d1e0ad.tar.gz
gdb-c86190dd2a60e0d29584ca791454d409f5d1e0ad.tar.bz2
* 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.
Diffstat (limited to 'bfd/coff-a29k.c')
-rw-r--r--bfd/coff-a29k.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c
index 4189c4a..c5b79d9 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);
}