aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ifunc/ifunc-19a-x86-64.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-12-16 20:31:08 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-12-16 20:31:08 +0000
commit73bcf2338555a1d0b2e5e1eaaecd263498d19967 (patch)
tree1ef649908975759d6c34317a2708fb00b9801f90 /ld/testsuite/ld-ifunc/ifunc-19a-x86-64.d
parent3d745be3fca9cfd3cbfb09c224a6c7312bec4de3 (diff)
downloadgdb-73bcf2338555a1d0b2e5e1eaaecd263498d19967.zip
gdb-73bcf2338555a1d0b2e5e1eaaecd263498d19967.tar.gz
gdb-73bcf2338555a1d0b2e5e1eaaecd263498d19967.tar.bz2
Also check local IFUNC references
bfd/ PR ld/14968 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Also check local IFUNC references. * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. ld/testsuite/ PR ld/14968 * ld-ifunc/ifunc-18a-i386.d: New file. * ld-ifunc/ifunc-18a-x86-64.d: Likewise. * ld-ifunc/ifunc-18a.s: Likewise. * ld-ifunc/ifunc-18b-i386.d: Likewise. * ld-ifunc/ifunc-18b-x86-64.d: Likewise. * ld-ifunc/ifunc-18b.s: Likewise. * ld-ifunc/ifunc-19a-i386.d: Likewise. * ld-ifunc/ifunc-19a-x86-64.d: Likewise. * ld-ifunc/ifunc-19a.s: Likewise. * ld-ifunc/ifunc-19b-i386.d: Likewise. * ld-ifunc/ifunc-19b-x86-64.d: Likewise. * ld-ifunc/ifunc-19b.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-ifunc/ifunc-19a-x86-64.d')
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-19a-x86-64.d14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc-19a-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-19a-x86-64.d
new file mode 100644
index 0000000..fe576d2
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-19a-x86-64.d
@@ -0,0 +1,14 @@
+#source: ifunc-19a.s
+#source: ifunc-19b.s
+#as: --64
+#ld: -shared -melf_x86_64 -z nocombreloc
+#readelf: -r --wide
+#target: x86_64-*-*
+
+Relocation section '.rela.ifunc' at .*
+[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
+[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_IRELATIVE[ ]+[0-9a-f]*
+
+Relocation section '.rela.plt' at .*
+[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
+[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_IRELATIVE[ ]+[0-9a-f]*