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