]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-ifunc/ifunc-2-x86-64.s
Merge commit 'upstream/2.20'
[msp430-binutils.git] / ld / testsuite / ld-ifunc / ifunc-2-x86-64.s
diff --git a/ld/testsuite/ld-ifunc/ifunc-2-x86-64.s b/ld/testsuite/ld-ifunc/ifunc-2-x86-64.s
new file mode 100644 (file)
index 0000000..4137ff1
--- /dev/null
@@ -0,0 +1,17 @@
+       .type foo, %gnu_indirect_function
+       .global __GI_foo
+       .hidden __GI_foo
+       .set __GI_foo, foo
+       .text
+.globl foo
+       .type   foo, @function
+foo:
+       ret
+       .size   foo, .-foo
+.globl bar
+       .type   bar, @function
+bar:
+       call    __GI_foo
+       leaq    __GI_foo(%rip), %rax
+       ret
+       .size   bar, .-bar