* elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
[binutils.git] / bfd / elf32-fr30.c
index f2b4b445cffa3ce01496785c6e714c15f63ca007..c7a3b2158be1eb8982c1d83fbd4a50164cb7f59a 100644 (file)
@@ -1,5 +1,5 @@
 /* FR30-specific support for 32-bit ELF.
-   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
 
@@ -236,7 +236,6 @@ static reloc_howto_type fr30_elf_howto_table [] =
          0,                     /* src_mask */
          0,                     /* dst_mask */
          false),                /* pcrel_offset */
-
 };
 \f
 /* Utility to actually perform an R_FR30_20 reloc.  */
@@ -278,13 +277,12 @@ 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;
 }
-
 \f
 /* Utility to actually perform a R_FR30_48 reloc.  */
 
@@ -321,7 +319,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;
 }
@@ -461,7 +459,6 @@ fr30_final_link_relocate (howto, input_bfd, input_section, contents, rel, reloca
 
   return r;
 }
-
 \f
 /* Relocate an FR30 ELF section.
    There is some attempt to make this function usable for many architectures,
This page took 0.026783 seconds and 4 git commands to generate.