From: Jeff Holcomb Date: Wed, 17 Oct 2001 01:44:10 +0000 (+0000) Subject: 2001-10-16 Jeff Holcomb X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df22989b954575de2046b8c0e169850f1528a021;p=binutils-gdb.git 2001-10-16 Jeff Holcomb * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer casts. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 99c172738b9..0cebc35f10c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-10-16 Jeff Holcomb + + * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer + casts. + 2001-10-15 H.J. Lu * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE diff --git a/bfd/elflink.h b/bfd/elflink.h index b714d46d681..b1f8311404e 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -4502,7 +4502,7 @@ elf_link_sort_relocs (abfd, info, psec) struct elf_link_sort_rela *s; erel = (Elf_External_Rel *) o->contents; - erelend = (Elf_External_Rel *) ((PTR) o->contents + o->_raw_size); + erelend = (Elf_External_Rel *) (o->contents + o->_raw_size); s = rela + o->output_offset / sizeof (Elf_External_Rel); for (; erel < erelend; erel++, s++) { @@ -4519,7 +4519,7 @@ elf_link_sort_relocs (abfd, info, psec) struct elf_link_sort_rela *s; erela = (Elf_External_Rela *) o->contents; - erelaend = (Elf_External_Rela *) ((PTR) o->contents + o->_raw_size); + erelaend = (Elf_External_Rela *) (o->contents + o->_raw_size); s = rela + o->output_offset / sizeof (Elf_External_Rela); for (; erela < erelaend; erela++, s++) {