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
+1 -1
View File
@@ -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