OSDN Git Service

2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl>
Wed, 3 Jun 2009 16:58:11 +0000 (16:58 +0000)
committerhjl <hjl>
Wed, 3 Jun 2009 16:58:11 +0000 (16:58 +0000)
* 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.

bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c

index ef39b35..ea2f0a0 100644 (file)
@@ -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
index 81b5093..05aada1 100644 (file)
@@ -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)
index 1dec3c3..041e285 100644 (file)
@@ -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)