aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-06-03 16:58:12 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-06-03 16:58:12 +0000
commit2e75bb3530060fc779dfb588868c92dae6aec8c9 (patch)
tree059075a73b4b4de99f6b026de74381ba8f2c402c /bfd
parent701e355da02cdaa4b6f1455ea32b61dfef9b2c51 (diff)
downloadgdb-2e75bb3530060fc779dfb588868c92dae6aec8c9.zip
gdb-2e75bb3530060fc779dfb588868c92dae6aec8c9.tar.gz
gdb-2e75bb3530060fc779dfb588868c92dae6aec8c9.tar.bz2
2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of h->plt.refcount > 0 on STT_GNU_IFUNC symbol. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-i386.c3
-rw-r--r--bfd/elf64-x86-64.c3
3 files changed, 6 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ef39b35..ea2f0a0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
+ * elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
+ h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
+ * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
+
+2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
+
* elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
GOT entry for STT_GNU_IFUNC symbol with pointer equality.
(elf_i386_relocate_section): Adjust R_386_GOT32 relocation
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 81b5093..05aada1 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -1955,9 +1955,6 @@ elf_i386_allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
return TRUE;
}
- if (h->plt.refcount <= 0)
- abort ();
-
/* When building a static executable, use .iplt, .igot.plt and
.rel.iplt sections for STT_GNU_IFUNC symbols. */
if (htab->splt != 0)
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 1dec3c3..041e285 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -1793,9 +1793,6 @@ elf64_x86_64_allocate_dynrelocs (struct elf_link_hash_entry *h, void * inf)
return TRUE;
}
- if (h->plt.refcount <= 0)
- abort ();
-
/* When building a static executable, use .iplt, .igot.plt and
.rela.iplt sections for STT_GNU_IFUNC symbols. */
if (htab->splt != 0)