;Testname=noerr; Arguments=-felf64 -ogotoff64.o; Files=stdout stderr gotoff64.o
;Testname=err; Arguments=-DERROR -felf64 -ogotoff64.o; Files=stdout stderr gotoff64.o

	bits 64
	default rel

	extern foo

	mov r15,[foo wrt ..got]
	lea r12,[foo wrt ..got]
%ifdef ERROR
	lea rax,[foo wrt ..gotoff]
	mov rax,[foo wrt ..gotoff]
%endif

	default abs

	mov r15,[foo wrt ..got]
	lea r12,[foo wrt ..got]
	mov rax,[qword foo wrt ..got]
%ifdef ERROR
	lea rax,[foo wrt ..gotoff]
	mov rax,[foo wrt ..gotoff]
%endif
	mov rax,[qword foo wrt ..gotoff]

Test for various ELF64 GOT references
Test for various ELF64 GOT references

Try to test for various GOT references in ELF64.

Signed-off-by: H. Peter Anvin <8a453bad9912ffe59bc0f0b8abe03df9be19379e@zytor.com>

projedi/nasm,projedi/nasm,projedi/nasm,Distrotech/nasm,letolabs/nasm,letolabs/nasm,techkey/nasm,Distrotech/nasm,techkey/nasm,projedi/nasm,turingstudio/nasm,turingstudio/nasm,projedi/nasm,turingstudio/nasm,Distrotech/nasm,techkey/nasm,techkey/nasm,Distrotech/nasm,letolabs/nasm,turingstudio/nasm,techkey/nasm