repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated Malay translation for the bfd sub-directory
[binutils-gdb.git]
/
ld
/
testsuite
/
ld-riscv-elf
/
ifunc-seperate-caller-plt.s
blob
cc1608a9803ce5d492e0b8ea25c290a6e3301eb7
1
.text
2
3
# Call the IFUNC `foo` which is defined in the other modules.
4
.globl foo
5
.type foo, %function
6
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)
13
14
.L2:
15
auipc x2
, %
pcrel_hi
(
foo_addr
)
16
addi
x2
,
x2
, %
pcrel_lo
(
.L2)
17
18
call foo
19
call foo@plt
20
21
ret
22
.size main, .-main
23
24
.data
25
foo_addr
:
26
.quad foo