PATCH: Don't set ELFOSABI_LINUX in dynamic ifunc-using executable

H.J. Lu hjl.tools@gmail.com
Fri Feb 19 01:20:00 GMT 2010


On Thu, Feb 18, 2010 at 5:03 PM, Alan Modra <amodra@gmail.com> wrote:
> On Thu, Feb 18, 2010 at 02:41:38PM -0800, H.J. Lu wrote:
>>       * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
>>       has_ifunc_symbols if the symbol comes from a shared library.
>>       * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
>>       * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
>>       * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
>>       * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
>>       * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
>>
>>       * ld-ifunc/ifunc.exp: Expect System V OSABI in dynamic
>>       ifunc-using executable.
>
> OK if you have checked with the glibc people that this is the right
> thing to do.  (It seems like it would be to me.)
>

Hi,

I like to apply this linker patch:

http://sourceware.org/ml/binutils/2010-02/msg00369.html

which sets ELFOSABI_LINUX only when we see an IFUNC symbol
from .o file. Linker already treats IFUNC symbols from DSO as
normal FUNC symbols. Does anyone see any problems.

Thanks.


-- 
H.J.



More information about the Binutils mailing list