mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-12 11:29:30 +00:00
24 lines
354 B
ArmAsm
24 lines
354 B
ArmAsm
|
.text
|
||
|
|
||
|
.type foo_resolver, @function
|
||
|
foo_resolver:
|
||
|
ret
|
||
|
.size foo_resolver, .-foo_resolver
|
||
|
|
||
|
.globl foo
|
||
|
.type foo, %gnu_indirect_function
|
||
|
.set foo, foo_resolver
|
||
|
|
||
|
.globl bar
|
||
|
.type bar, @function
|
||
|
bar:
|
||
|
.L1:
|
||
|
auipc x1, %got_pcrel_hi (foo)
|
||
|
.ifdef __64_bit__
|
||
|
ld x1, %pcrel_lo (.L1) (x1)
|
||
|
.else
|
||
|
lw x1, %pcrel_lo (.L1) (x1)
|
||
|
.endif
|
||
|
ret
|
||
|
.size bar, .-bar
|