diff options
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/ifunc-reloc-call-02.s')
-rw-r--r-- | ld/testsuite/ld-riscv-elf/ifunc-reloc-call-02.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-riscv-elf/ifunc-reloc-call-02.s b/ld/testsuite/ld-riscv-elf/ifunc-reloc-call-02.s new file mode 100644 index 0000000..e493c47 --- /dev/null +++ b/ld/testsuite/ld-riscv-elf/ifunc-reloc-call-02.s @@ -0,0 +1,18 @@ + .text + + .type foo_resolver, @function +foo_resolver: + ret + .size foo_resolver, .-foo_resolver + + .globl foo + .type foo, %gnu_indirect_function + .set foo, foo_resolver + + .globl bar + .type bar, @function +bar: + call foo@plt + call foo + ret + .size bar, .-bar |