This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [committed, PATCH] Check reloc against IFUNC symbol only with dynamic symbols
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Tue, 15 Mar 2016 05:28:56 -0700
- Subject: Re: [committed, PATCH] Check reloc against IFUNC symbol only with dynamic symbols
- Authentication-results: sourceware.org; auth=none
- References: <20160131000903 dot GA2574 at gmail dot com>
On Sat, Jan 30, 2016 at 4:09 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> There is no need to check relocation IFUNC symbol if there are no
> dynamic symbols.
>
> bfd/
>
> PR ld/19539
> * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
> against STT_GNU_IFUNC symbol only with dynamic symbols.
> * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
>
> ld/
>
> PR ld/19539
> * testsuite/ld-elf/pr19539.d: New file.
> * testsuite/ld-elf/pr19539.s: Likewise.
> * testsuite/ld-elf/pr19539.t: Likewise.
I backported it to 2.26 branch.
--
H.J.