diff options
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/weakref32.s')
-rw-r--r-- | ld/testsuite/ld-riscv-elf/weakref32.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-riscv-elf/weakref32.s b/ld/testsuite/ld-riscv-elf/weakref32.s new file mode 100644 index 00000000000..14df0412188 --- /dev/null +++ b/ld/testsuite/ld-riscv-elf/weakref32.s @@ -0,0 +1,18 @@ + .option nopic + .text + .align 1 + .globl _start + .type _start, @function +_start: + lla a5,f + beqz a5,.L1 + addi sp,sp,-16 + sw ra,12(sp) + call f + lw ra,12(sp) + addi sp,sp,16 + tail f +.L1: + ret + .size _start, .-_start + .weak f |