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:
@@ -136,7 +136,7 @@ unfold:
|
||||
lodsd
|
||||
push eax ; sz_uncompressed of folded stub (junk, actually)
|
||||
push esp ; &sz_uncompressed
|
||||
mov edx, 0x00800000 ; origin of this program
|
||||
mov edx, 0x01400000 ; origin of this program
|
||||
mov eax, [p_memsz + szElf32_Ehdr + edx] ; length of loaded pages
|
||||
add eax, edx
|
||||
add edx, szElf32_Ehdr + 2*szElf32_Phdr ; convenient ptr
|
||||
|
||||
Reference in New Issue
Block a user