Avoid "ASCII armor" area below 16MB (0x01000000) for exec-shield and

pre-linked PT_INTERP such as ld-linux.so.2
	l_lx_elf86.asm l_lx_elf86.lds l_lx_sh86.asm l_lx_sh86.lds

committer: jreiser <jreiser> 1084925700 +0000
This commit is contained in:
John Reiser
2004-05-19 00:15:00 +00:00
parent aee150474c
commit 9769599f1d
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -141,7 +141,7 @@ unfold:
lodsd
push eax ; sz_uncompressed (junk, actually)
push esp ; &sz_uncompressed
mov eax, 0x400000
mov eax, 0x1000000
push eax ; &destination
; mmap a page to hold the decompressed program
@@ -158,7 +158,7 @@ unfold:
pop eax
int 0x80
xchg eax, ebx
mov bh, PAGE_SIZE>>8 ; ebx= 0x401000
mov bh, PAGE_SIZE>>8 ; ebx= 0x1001000
add esp, byte 6*4 ; discard args to mmap
lodsd