Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-riscv-elf/weakref32.s
2023-03-06 14:48:14 +01:00

22 lines
272 B
ArmAsm

.option nopic
.text
.align 1
.globl _start
.type _start, @function
_start:
lui a5,%hi(f)
addi a5,a5,%lo(f)
beq a5,zero,.L1
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