Update release readme after making 2.43.1 release
[binutils-gdb.git] / ld / testsuite / ld-riscv-elf / ifunc-plt-02.s
blobc3022be0e08e8238be8f3f328558cdb2b1d417df
1 .text
3 .type foo_resolver, @function
4 foo_resolver:
5 ret
6 .size foo_resolver, .-foo_resolver
8 .globl foo
9 .type foo, %gnu_indirect_function
10 .set foo, foo_resolver
12 .globl bar
13 .type bar, @function
14 bar:
15 .L1:
16 auipc x1, %got_pcrel_hi (foo)
17 .ifdef __64_bit__
18 ld x1, %pcrel_lo (.L1) (x1)
19 .else
20 lw x1, %pcrel_lo (.L1) (x1)
21 .endif
23 .L2:
24 auipc x2, %pcrel_hi (foo_addr)
25 .ifdef __64_bit__
26 ld x2, %pcrel_lo (.L2) (x2)
27 .else
28 lw x2, %pcrel_lo (.L2) (x2)
29 .endif
31 .L3:
32 auipc x3, %pcrel_hi (foo)
33 addi x3, x3, %pcrel_lo (.L3)
35 call foo
36 call foo@plt
37 ret
38 .size bar, .-bar
40 .data
41 foo_addr:
42 .ifdef __64_bit__
43 .quad foo
44 .else
45 .long foo
46 .endif