binutils-gdb/ld/testsuite/ld-ifunc/ifunc-22-i386.s
H.J. Lu 8c650f161a Add ifunc tests for call, jmp, add, test
* ld-ifunc/ifunc-21-i386.s: Add tests for call, jmp, add, test.
	* ld-ifunc/ifunc-21-x86-64.s: Likewise.
	* ld-ifunc/ifunc-22-i386.s: Likewise.
	* ld-ifunc/ifunc-22-x86-64.s: Likewise.
	* ld-ifunc/ifunc-21-i386.d: Updated.
	* ld-ifunc/ifunc-21-x86-64.d: Likewise.
	* ld-ifunc/ifunc-22-i386.d: Likewise.
	* ld-ifunc/ifunc-22-x86-64.d: Likewise.
2015-09-03 04:03:13 -07:00

25 lines
412 B
ArmAsm

.text
.type start,"function"
.global start
start:
.type _start,"function"
.global _start
_start:
.type __start,"function"
.global __start
__start:
.type __start,"function"
call *foo@GOT(%ebx)
jmp *foo@GOT(%ebx)
add foo@GOT(%ebx), %eax
mov foo@GOT(%ebx), %eax
test %eax, foo@GOT(%ebx)
mov bar@GOT(%ebx), %eax
.global foo
.type foo, %gnu_indirect_function
foo:
ret
.type bar, %function
bar:
ret