mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 02:41:08 +00:00
Fix long relative jmp assemble in x86.nz plugin
This commit is contained in:
parent
32173be9ee
commit
0343c97b71
@ -1040,9 +1040,10 @@ return -1;
|
||||
data[l++] = (char)(dst-2);
|
||||
return l;
|
||||
} else {
|
||||
/* absolute address */
|
||||
addr-=5;
|
||||
data[l++]= 0xe9;
|
||||
/* relative address */
|
||||
addr -= offset;
|
||||
addr -= 5;
|
||||
data[l++] = 0xe9;
|
||||
data[l++] = ptr[0];
|
||||
data[l++] = ptr[1];
|
||||
data[l++] = ptr[2];
|
||||
|
Loading…
Reference in New Issue
Block a user