From 95fcbcb4f2e207d979e12f4e231a1b05554490c5 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Fri, 10 Aug 2018 20:28:40 -0700 Subject: [PATCH] ::PackLinuxElf64amd() sets lg2_page back to 12. https://github.com/upx/upx/issues/212 (partial, Fedora 29) modified: p_lx_elf.cpp --- src/p_lx_elf.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index b377cb68..d7b78c46 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -982,6 +982,9 @@ Linker* PackLinuxElf64ppc::newLinker() const PackLinuxElf64amd::PackLinuxElf64amd(InputFile *f) : super(f) { + // Why did PackLinuxElf64Le set lg2_page = 16 ? + // It causes trouble for check_pt_dynamic() from canPack(). + lg2_page = 12; page_size = 1u<