This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR ld/10433: Latest ld fails to link ldconfig properly


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;
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]