"pop %rcx", not %ecx

modified:   amd64-darwin.macho-entry.S
	modified:   amd64-linux.elf-entry.S
This commit is contained in:
John Reiser
2018-10-07 10:11:45 -07:00
parent 37d6a34e58
commit b05073550c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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