Update release readme after making 2.43.1 release
[binutils-gdb.git] / ld / testsuite / ld-riscv-elf / ifunc-seperate-caller-plt.s
blobcc1608a9803ce5d492e0b8ea25c290a6e3301eb7
1 .text
3 # Call the IFUNC `foo` which is defined in the other modules.
4 .globl foo
5 .type foo, %function
7 .globl main
8 .type main, @function
9 main:
10 .L1:
11 auipc x1, %got_pcrel_hi (foo)
12 addi x1, x1, %pcrel_lo (.L1)
14 .L2:
15 auipc x2, %pcrel_hi (foo_addr)
16 addi x2, x2, %pcrel_lo (.L2)
18 call foo
19 call foo@plt
21 ret
22 .size main, .-main
24 .data
25 foo_addr:
26 .quad foo