aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Holcomb <jeffh@redhat.com>2001-10-17 01:44:10 +0000
committerJeff Holcomb <jeffh@redhat.com>2001-10-17 01:44:10 +0000
commitdf22989b954575de2046b8c0e169850f1528a021 (patch)
tree8a1d584358ba3cbab8457c95bca95bd23e5c453b
parentfe68b33ddb7a57db891189f4448cfa1dedea9772 (diff)
downloadgdb-df22989b954575de2046b8c0e169850f1528a021.zip
gdb-df22989b954575de2046b8c0e169850f1528a021.tar.gz
gdb-df22989b954575de2046b8c0e169850f1528a021.tar.bz2
2001-10-16 Jeff Holcomb <jeffh@redhat.com>
* elflink.h (elf_link_sort_relocs): Remove unnecessary pointer casts.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 99c1727..0cebc35 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-16 Jeff Holcomb <jeffh@redhat.com>
+
+ * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
+ casts.
+
2001-10-15 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
diff --git a/bfd/elflink.h b/bfd/elflink.h
index b714d46..b1f8311 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++)
{