"pop %rcx", not %ecx
modified: amd64-darwin.macho-entry.S modified: amd64-linux.elf-entry.S
This commit is contained in:
@@ -313,7 +313,7 @@ is_pie:
|
||||
movq %rsi,%arg1 // src
|
||||
pop %arg2 // P_14 srclen
|
||||
call *%rbp // old f_exp
|
||||
pop %ecx // P_13 toss .sz_unc
|
||||
pop %rcx // P_13 toss .sz_unc
|
||||
|
||||
// PROT_EXEC
|
||||
pop %arg2 // P_12 length
|
||||
|
||||
@@ -285,7 +285,7 @@ unfold: // IN: rbp= &f_exp; rsp/ &proc_self_exe,%entry
|
||||
movq %rsi,%arg1 // src
|
||||
pop %arg2 // P_14 srclen
|
||||
call *%rbp // old f_exp
|
||||
pop %ecx // P_13 toss .sz_unc
|
||||
pop %rcx // P_13 toss .sz_unc
|
||||
|
||||
// PROT_EXEC
|
||||
pop %arg2 // P_12 length
|
||||
|
||||
Reference in New Issue
Block a user