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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user