aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-fr30.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-12-21 18:40:21 +0000
committerNick Clifton <nickc@redhat.com>2000-12-21 18:40:21 +0000
commit23ccc829e251d20c40a4337d2ae6057a0bb951aa (patch)
tree8489640a320e25e899ca20945f20aec842fc5f19 /bfd/elf32-fr30.c
parent8c603c85a1a36ac618c2f03d69686a7985a5ab77 (diff)
downloadgdb-23ccc829e251d20c40a4337d2ae6057a0bb951aa.zip
gdb-23ccc829e251d20c40a4337d2ae6057a0bb951aa.tar.gz
gdb-23ccc829e251d20c40a4337d2ae6057a0bb951aa.tar.bz2
Fixes to allow sources to compile under Solaris 2.8
Diffstat (limited to 'bfd/elf32-fr30.c')
-rw-r--r--bfd/elf32-fr30.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf32-fr30.c b/bfd/elf32-fr30.c
index f2b4b44..526212b 100644
--- a/bfd/elf32-fr30.c
+++ b/bfd/elf32-fr30.c
@@ -278,9 +278,9 @@ fr30_elf_i20_reloc (abfd, reloc_entry, symbol, data,
if (relocation > (((bfd_vma) 1 << 20) - 1))
return bfd_reloc_overflow;
- x = bfd_get_32 (abfd, data + reloc_entry->address);
+ x = bfd_get_32 (abfd, (char *) data + reloc_entry->address);
x = (x & 0xff0f0000) | (relocation & 0x0000ffff) | ((relocation & 0x000f0000) << 4);
- bfd_put_32 (abfd, x, data + reloc_entry->address);
+ bfd_put_32 (abfd, x, (char *) data + reloc_entry->address);
return bfd_reloc_ok;
}
@@ -321,7 +321,7 @@ fr30_elf_i32_reloc (abfd, reloc_entry, symbol, data,
+ symbol->section->output_offset
+ reloc_entry->addend;
- bfd_put_32 (abfd, relocation, data + reloc_entry->address + 2);
+ bfd_put_32 (abfd, relocation, (char *) data + reloc_entry->address + 2);
return bfd_reloc_ok;
}