keep zeroed stack as clean as possible (Sebastian <scut@nb.in-berlin.de>)

l_lx_sep86.asm fold_elf86.asm

committer: jreiser <jreiser> 994702928 +0000
This commit is contained in:
John Reiser
2001-07-09 18:22:08 +00:00
parent e08d3858be
commit caca5ffa12
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -101,8 +101,7 @@ EXTERN make_hatch
mov ch, PAGE_SIZE>>8 ; 0x1000
add ecx, [p_memsz + szElf32_Ehdr + ebx] ; length to unmap
mov bh, 0 ; from 0x401000 to 0x400000
push byte __NR_munmap
pop eax
mov eax, __NR_munmap ; do not dirty the stack with push byte + pop
jmp edx ; unmap ourselves via escape hatch, then goto entry
do_auxv: ; entry: %esi=src = &argc; %edi=dst. exit: %edi= &AT_NULL
+1 -2
View File
@@ -196,8 +196,7 @@ EXTERN make_hatch
mov ebx, ebp
and ebx, ecx ; round down to page boundary
neg ecx ; PAGE_SIZE (this stub fits in it)
push byte __NR_munmap
pop eax
mov eax, __NR_munmap ; do not dirty the stack with push byte + pop
jmp edx ; unmap ourselves, then goto entry
do_auxv: ; entry: %esi=src = &argc; %edi=dst. exit: %edi= &AT_NULL