1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
.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]
|