PATCH: PR ld/10433: Latest ld fails to link ldconfig properly
Alan Modra
amodra@bigpond.net.au
Mon Aug 3 14:36:00 GMT 2009
On Thu, Jul 30, 2009 at 09:05:04PM -0700, H.J. Lu wrote:
> 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;
> }
These should probably be
h->got = htab->init_got_offset;
h->plt = htab->init_plt_offset;
OK with that change.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list