b9201bb360
* ld-i386/vxworks1-lib.s, ld-i386/vxworks1-lib.dd, * ld-i386/vxworks1-lib.rd, ld-i386/vxworks1.s, ld-i386/vxworks1.dd, * ld-i386/vxworks1.rd, ld-i386/vxworks1.ld: New test. * ld-i386/i386.exp: Run it.
28 lines
401 B
ArmAsm
28 lines
401 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
|
|
|
|
.comm x,4,4
|