bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/17154] x86_64 ld fails to select proper plt entry for ifunc


From: hjl.tools at gmail dot com
Subject: [Bug ld/17154] x86_64 ld fails to select proper plt entry for ifunc
Date: Mon, 14 Jul 2014 15:22:46 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17154

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
libc.so is fine:

Starting program: /export/build/gnu/glibc/build-x86_64-linux/string/test-bcopy
--direct
                           bcopy    simple_bcopy

Breakpoint 1, do_one_test (impl=0x604270 <tst_bcopy>, 
    impl=0x604270 <tst_bcopy>, len=1, 
    orig_src=0x7ffff7ff2000 "\001", '\245' <repeats 199 times>..., 
    src=0x7ffff7fee000 "\001", 'Z' <repeats 199 times>..., 
    dst=0x7ffff7fee020 'Z' <repeats 200 times>...) at test-memmove.c:73
73      CALL (impl, src, dst, len);
(gdb) step
bcopy () at ../sysdeps/x86_64/multiarch/bcopy.S:5
5        xchg    %rdi, %rsi
(gdb) step
6        jmp    __libc_memmove    /* Branch to IFUNC memmove.  */
(gdb) si
0x00007ffff7a5f3f0 in address@hidden ()
   from /export/build/gnu/glibc/build-x86_64-linux/libc.so.6
(gdb) si
__memmove_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:55
55        mov    %rdi, %rax
(gdb) 

elf_x86_64_get_synthetic_symtab doesn't handle IFUNC entries in
PLT properly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]