mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-12 11:29:30 +00:00
19 lines
335 B
ArmAsm
19 lines
335 B
ArmAsm
|
.text
|
||
|
.globl foo
|
||
|
.type foo, @gnu_indirect_function
|
||
|
foo:
|
||
|
ret
|
||
|
.text
|
||
|
.type bar, @gnu_indirect_function
|
||
|
bar:
|
||
|
ret
|
||
|
.globl _start
|
||
|
.type _start, @function
|
||
|
_start:
|
||
|
call *foo@GOTPCREL(%rip)
|
||
|
jmp *bar@GOTPCREL(%rip)
|
||
|
movq $0, bar@GOTPCREL(%rip)
|
||
|
cmpq $0, foo@GOTPCREL(%rip)
|
||
|
cmpq foo@GOTPCREL(%rip), %rcx
|
||
|
cmpq bar@GOTPCREL(%rip), %rcx
|