fix brk() problem when is_big: stub must munmap all_pages

https://github.com/upx/upx/issues/5
	modified:   p_lx_elf.cpp
	modified:   p_lx_elf.h
This commit is contained in:
John Reiser
2016-10-15 14:06:56 -07:00
parent f606b5879b
commit 44328aee76
2 changed files with 12 additions and 10 deletions
+1
View File
@@ -81,6 +81,7 @@ protected:
unsigned sz_pack2a; // after pack2() of all PT_LOAD
unsigned lg2_page; // log2(PAGE_SIZE)
unsigned page_size; // 1u<<lg2_page
unsigned is_big; // stub style: must use area above the brk
unsigned xct_off; // shared library: file offset of SHT_EXECINSTR
unsigned hatch_off; // file offset of escape hatch
upx_uint64_t load_va; // PT_LOAD[0].p_vaddr