aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ifunc/ifunc-22-x86-64.s
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-09-02 15:30:32 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-09-02 15:30:32 -0700
commit0762fbb6a7543730d61384344a95fa7bf174a6cb (patch)
treea57191f6e37cf6eb001af80bc3dc8bba17438288 /ld/testsuite/ld-ifunc/ifunc-22-x86-64.s
parentc74be520ba8ed2d013d43916b923b837294343cc (diff)
downloadgdb-0762fbb6a7543730d61384344a95fa7bf174a6cb.zip
gdb-0762fbb6a7543730d61384344a95fa7bf174a6cb.tar.gz
gdb-0762fbb6a7543730d61384344a95fa7bf174a6cb.tar.bz2
Add 2 ifunc tests for i386 and x86-64
* ld-ifunc/ifunc-21-i386.d: Likewise. * ld-ifunc/ifunc-21-i386.s: Likewise. * ld-ifunc/ifunc-21-x86-64.d: Likewise. * ld-ifunc/ifunc-21-x86-64.s: Likewise. * ld-ifunc/ifunc-22-i386.d: Likewise. * ld-ifunc/ifunc-22-i386.s: Likewise. * ld-ifunc/ifunc-22-x86-64.d: Likewise. * ld-ifunc/ifunc-22-x86-64.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-ifunc/ifunc-22-x86-64.s')
-rw-r--r--ld/testsuite/ld-ifunc/ifunc-22-x86-64.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc-22-x86-64.s b/ld/testsuite/ld-ifunc/ifunc-22-x86-64.s
new file mode 100644
index 0000000..f402c62
--- /dev/null
+++ b/ld/testsuite/ld-ifunc/ifunc-22-x86-64.s
@@ -0,0 +1,20 @@
+ .text
+ .type start,"function"
+ .global start
+start:
+ .type _start,"function"
+ .global _start
+_start:
+ .type __start,"function"
+ .global __start
+__start:
+ .type __start,"function"
+ movq foo@GOTPCREL(%rip), %rax
+ movq bar@GOTPCREL(%rip), %rax
+ .type foo, %gnu_indirect_function
+ .globl foo
+foo:
+ ret
+ .type bar, %function
+bar:
+ ret