diff options
Diffstat (limited to 'ld/testsuite/ld-ifunc/ifunc-2-i386.s')
-rw-r--r-- | ld/testsuite/ld-ifunc/ifunc-2-i386.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc-2-i386.s b/ld/testsuite/ld-ifunc/ifunc-2-i386.s new file mode 100644 index 0000000..32d8812 --- /dev/null +++ b/ld/testsuite/ld-ifunc/ifunc-2-i386.s @@ -0,0 +1,21 @@ + .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 .L6 +.L6: + popl %ebx + addl $_GLOBAL_OFFSET_TABLE_+[.-.L6], %ebx + call __GI_foo + leal __GI_foo@GOTOFF(%ebx), %eax + ret + .size bar, .-bar |