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

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-cfl-3 gold-4-cross]$ cat p.c
#include <stdio.h>

int
main ()
{
  printf ("hello %p\n", printf);
  return 0;
}
[hjl@gnu-cfl-3 gold-4-cross]$ 
/export/project/tools-build/glibc-many/install/compilers/aarch64-linux-gnu/bin/aarch64-glibc-linux-gnu-gcc
-o arm64 -O2 p.c
[hjl@gnu-cfl-3 gold-4-cross]$ readelf -r --dyn-syms -W  arm64 | grep printf
0000000000420018  0000000600000402 R_AARCH64_JUMP_SLOT    0000000000400550
printf@GLIBC_2.17 + 0
     6: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND printf@GLIBC_2.17
(3)
[hjl@gnu-cfl-3 gold-4-cross]$ 

When function address is taken, its PLT entry should be used as function
address.

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

Reply via email to