* elflink.h (link_read_relocs): Explicitly cast external_relocs to
authorMark Mitchell <mark@codesourcery.com>
Tue, 22 Jun 1999 13:57:15 +0000 (13:57 +0000)
committerMark Mitchell <mark@codesourcery.com>
Tue, 22 Jun 1999 13:57:15 +0000 (13:57 +0000)
bfd_byte * before performing pointer arithmetic.

bfd/ChangeLog
bfd/elflink.h

index 762fddf5ea9994b57c2d6f3ebfb5f242198640db..6da6d4ebe30d4a77afd3674ad9e3b184bceaf42b 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-22  Mark Mitchell  <mark@codesourcery.com>
+
+       * elflink.h (link_read_relocs): Explicitly cast external_relocs to
+       bfd_byte * before performing pointer arithmetic.
+
 Tue Jun 22 13:06:25 1999  Jeffrey A Law  (law@cygnus.com)
 
        * elf-hppa.h: New file.  Common stuff for elf32 and elf64 PA
index 5aca205cffec91a13a7dc565072c5f5a2ffe8786..4564cdefb7b7b7cb46845b496581ba5a266a55d3 100644 (file)
@@ -2123,7 +2123,7 @@ NAME(_bfd_elf,link_read_relocs) (abfd, o, external_relocs, internal_relocs,
   if (!elf_link_read_relocs_from_section 
       (abfd, 
        elf_section_data (o)->rel_hdr2,
-       external_relocs + rel_hdr->sh_size,
+       ((bfd_byte *) external_relocs) + rel_hdr->sh_size,
        internal_relocs + rel_hdr->sh_size / rel_hdr->sh_entsize))
     goto error_return;