This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: PR ld/10433: Latest ld fails to link ldconfig properly
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 30 Jul 2009 21:05:04 -0700
- Subject: PATCH: PR ld/10433: Latest ld fails to link ldconfig properly
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
When discarding space for dynamic relocations allocated for IFUNC
symbols, we should also set plt.offset to -1. Tested on Linux/ia32
and Linux/Intel64. OK to install?
Thanks.
H.J.
---
2009-07-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10433
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Also set
plt.offset to -1 when discarding space for dynamic
relocations.
Index: bfd/elf-ifunc.c
===================================================================
--- bfd/elf-ifunc.c (revision 6507)
+++ bfd/elf-ifunc.c (working copy)
@@ -193,6 +193,7 @@ _bfd_elf_allocate_ifunc_dyn_relocs (stru
|| h->got.refcount > 0)
abort ();
h->got.offset = (bfd_vma) -1;
+ h->plt.offset = (bfd_vma) -1;
*head = NULL;
return TRUE;
}