mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-31 18:44:48 +01:00
385576a748
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29024 a95241bf-73f2-0310-859d-f6bbb57e9c96
32 lines
424 B
ArmAsm
32 lines
424 B
ArmAsm
.text
|
|
.globl foo
|
|
.type foo, @function
|
|
foo:
|
|
push %ebx
|
|
movl __GOTT_BASE__, %ebx
|
|
movl __GOTT_INDEX__(%ecx), %ebx
|
|
movl x@GOT(%ebx), %eax
|
|
incl (%eax)
|
|
call slocal@plt
|
|
call sglobal@plt
|
|
call sexternal@plt
|
|
pop %ebx
|
|
ret
|
|
.size foo, .-foo
|
|
|
|
.type slocal, @function
|
|
slocal:
|
|
ret
|
|
.size slocal, .-slocal
|
|
|
|
.globl sglobal
|
|
.type sglobal, @function
|
|
sglobal:
|
|
ret
|
|
.size sglobal, .-sglobal
|
|
|
|
.data
|
|
.4byte slocal
|
|
|
|
.comm x,4,4
|