RISC-V: Optimize lui and auipc relaxations for undefweak symbol.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-riscv-elf / weakref64.s
1 .option nopic
2 .text
3 .align 1
4 .globl _start
5 .type _start, @function
6 _start:
7 lui a5,%hi(f)
8 addi a5,a5,%lo(f)
9 beq a5,zero,.L1
10 lla a5,f
11 beqz a5,.L1
12 addi sp,sp,-16
13 sd ra,8(sp)
14 call f
15 ld ra,8(sp)
16 addi sp,sp,16
17 tail f
18 .L1:
19 ret
20 .size _start, .-_start
21 .weak f
This page took 0.030927 seconds and 4 git commands to generate.