aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-06-22 13:57:15 +0000
committerMark Mitchell <mark@codesourcery.com>1999-06-22 13:57:15 +0000
commit2f5116e25da93ec635230fb22276aa94bf52f5bb (patch)
tree3af3f1091f22b484e52bc289de456f0bb9266f6f /bfd/elflink.h
parent9e103c9cd2e22101617426f7c4e28d88dcce6d6a (diff)
downloadgdb-2f5116e25da93ec635230fb22276aa94bf52f5bb.zip
gdb-2f5116e25da93ec635230fb22276aa94bf52f5bb.tar.gz
gdb-2f5116e25da93ec635230fb22276aa94bf52f5bb.tar.bz2
* elflink.h (link_read_relocs): Explicitly cast external_relocs to
bfd_byte * before performing pointer arithmetic.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 5aca205..4564cde 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -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;