From b05073550cfa367723863a8b0173acbe6305ac47 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Sun, 7 Oct 2018 10:11:45 -0700 Subject: [PATCH] "pop %rcx", not %ecx modified: amd64-darwin.macho-entry.S modified: amd64-linux.elf-entry.S --- src/stub/src/amd64-darwin.macho-entry.S | 2 +- src/stub/src/amd64-linux.elf-entry.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stub/src/amd64-darwin.macho-entry.S b/src/stub/src/amd64-darwin.macho-entry.S index f937caf1..93931402 100644 --- a/src/stub/src/amd64-darwin.macho-entry.S +++ b/src/stub/src/amd64-darwin.macho-entry.S @@ -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 diff --git a/src/stub/src/amd64-linux.elf-entry.S b/src/stub/src/amd64-linux.elf-entry.S index 888720de..eb6cafbc 100644 --- a/src/stub/src/amd64-linux.elf-entry.S +++ b/src/stub/src/amd64-linux.elf-entry.S @@ -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