blob: 10fa881aa6f12d9dec70d2159007de39f79ca9b4 [file] [log] [blame]
.text
_start:
movl $foo@GOT, %eax
movl foo@GOT, %eax
movl foo@GOT(%eax), %eax
addl $foo@GOT, %eax
addl foo@GOT, %eax
addl foo@GOT(%eax), %eax
call *foo@GOT
call *foo@GOT(%eax)
jmp *foo@GOT
jmp *foo@GOT(%eax)
.intel_syntax noprefix
mov eax, offset foo@got
mov eax, DWORD PTR [foo@GOT]
mov eax, DWORD PTR [eax + foo@GOT]
add eax, offset foo@got
add eax, DWORD PTR [foo@GOT]
add eax, DWORD PTR [eax + foo@GOT]
call DWORD PTR [eax + foo@GOT]
call DWORD PTR [foo@GOT]
jmp DWORD PTR [eax + foo@GOT]
jmp DWORD PTR [foo@GOT]