This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Set plt_got.offset to (bfd_vma) -1
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Fri, 26 Feb 2016 05:23:01 -0800
- Subject: Re: [PATCH] Set plt_got.offset to (bfd_vma) -1
- Authentication-results: sourceware.org; auth=none
- References: <1456321842-14596-1-git-send-email-hjl dot tools at gmail dot com>
On Wed, Feb 24, 2016 at 5:50 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> Since plt_got.offset may be updated in x86 allocate_dynrelocs, set
> plt_got.offset to (bfd_vma) -1 when setting needs_plt to 0.
>
> * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
> to (bfd_vma) -1 when setting needs_plt to 0.
> * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
I backported it to 2.26 branch.
--
H.J.