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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to