Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-riscv-elf/ifunc-seperate-caller-pcrel.s
2023-03-06 14:48:14 +01:00

14 lines
235 B
ArmAsm

.text
# Call the IFUNC `foo` which is defined in the other modules.
.globl foo
.type foo, %function
.globl main
.type main, @function
main:
.L1:
auipc x1, %pcrel_hi (foo)
addi x1, x1, %pcrel_lo (.L1)
ret
.size main, .-main