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: amodra at gmail dot com
Subject: [Bug ld/17154] x86_64 ld fails to select proper plt entry for ifunc
Date: Tue, 15 Jul 2014 00:29:43 +0000

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

--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
My freshly built libc.so really does have bcopy jumping to realloc, as shown in
the disassembly.  1f4e0 is the realloc plt entry.

I built glibc with
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
GNU ld (GNU Binutils for Ubuntu) 2.22

then after noticing the problem, performed the final link again with current
mainline ld, seeing the same result.

libc_pic.os is good

0000000000066570 <bcopy>:
   66570:       48 87 fe                xchg   %rdi,%rsi
   66573:       e9 00 00 00 00          jmpq   66578 <bcopy+0x8>
                        66574: R_X86_64_PC32    __libc_memmove-0x4

  4560: 0000000000065f00    71 IFUNC   GLOBAL DEFAULT    2 __libc_memmove


I configured glibc with
/src/glibc-current/configure --prefix=/home/alan/gnu --enable-shared --with-tls
--enable-multi-arch

Note that string/test-bcopy is not actually testing bcopy!  gcc translates the
calls to memcpy...

-- 
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]