aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/weakref32.s
blob: 6c3d84de5f2ac69680313deb0917b30e138f707b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
	.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