This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR ld/10433: Latest ld fails to link ldconfig properly
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 4 Aug 2009 00:05:53 +0930
- Subject: Re: PATCH: PR ld/10433: Latest ld fails to link ldconfig properly
- References: <20090731040504.GA13104@lucon.org>
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