[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.
- [Bug ld/17154] New: x86_64 ld fails to select proper plt entry for ifunc, amodra at gmail dot com, 2014/07/14
- [Bug ld/17154] x86_64 ld fails to select proper plt entry for ifunc, amodra at gmail dot com, 2014/07/14
- [Bug ld/17154] x86_64 ld fails to select proper plt entry for ifunc, hjl.tools at gmail dot com, 2014/07/14
- [Bug ld/17154] x86_64 ld fails to select proper plt entry for ifunc,
amodra at gmail dot com <=
- [Bug ld/17154] x86_64 ld fails to select proper plt entry for ifunc, amodra at gmail dot com, 2014/07/14
- [Bug ld/17154] x86_64 ld fails to select proper plt entry for ifunc, hjl.tools at gmail dot com, 2014/07/15
- [Bug ld/17154] x86_64 ld fails to select proper plt entry for ifunc, hjl.tools at gmail dot com, 2014/07/15
- [Bug binutils/17154] x86 plt_sym_val fails to select proper plt entry, hjl.tools at gmail dot com, 2014/07/15
- [Bug binutils/17154] x86 plt_sym_val fails to select proper plt entry, cvs-commit at gcc dot gnu.org, 2014/07/16
- [Bug binutils/17154] x86 plt_sym_val fails to select proper plt entry, hjl.tools at gmail dot com, 2014/07/16
- [Bug binutils/17154] x86 plt_sym_val fails to select proper plt entry, cvs-commit at gcc dot gnu.org, 2014/07/28