]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-ifunc/ifunc-2-local-i386.s
Imported binutils-2.20
[msp430-binutils.git] / ld / testsuite / ld-ifunc / ifunc-2-local-i386.s
diff --git a/ld/testsuite/ld-ifunc/ifunc-2-local-i386.s b/ld/testsuite/ld-ifunc/ifunc-2-local-i386.s
new file mode 100644 (file)
index 0000000..4e0b6ae
--- /dev/null
@@ -0,0 +1,18 @@
+       .type foo, %gnu_indirect_function
+       .set __GI_foo, foo
+       .text
+       .type   foo, @function
+foo:
+       ret
+       .size   foo, .-foo
+.globl bar
+       .type   bar, @function
+bar:
+       call    .L6
+.L6:
+       popl    %ebx
+       addl    $_GLOBAL_OFFSET_TABLE_+[.-.L6], %ebx
+       call    __GI_foo
+       leal    __GI_foo@GOTOFF(%ebx), %eax
+       ret
+       .size   bar, .-bar