arm64 (aarch64) and PAGE_SIZE > 4KiB
Future: use prctl(PR_SET_MM, PR_SET_MM_START_BRK, addr) https://github.com/upx/upx/issues/254 modified: p_lx_elf.cpp modified: stub/src/amd64-linux.elf-main.c
This commit is contained in:
+1
-1
@@ -519,7 +519,7 @@ off_t PackLinuxElf64::pack3(OutputFile *fo, Filter &ft)
|
||||
// So: pretend 4KiB pages.
|
||||
upx_uint64_t const pm = (
|
||||
Elf64_Ehdr::EM_X86_64 ==e_machine
|
||||
|| Elf64_Ehdr::EM_AARCH64==e_machine
|
||||
//|| Elf64_Ehdr::EM_AARCH64==e_machine
|
||||
//|| Elf64_Ehdr::EM_PPC64 ==e_machine /* DOES NOT WORK! */
|
||||
)
|
||||
? ((~(upx_uint64_t)0)<<12)
|
||||
|
||||
Reference in New Issue
Block a user