diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index 08769c9b..f374f3f8 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -2621,7 +2621,7 @@ void PackLinuxElf32::pack1(OutputFile *fo, Filter & /*ft*/) unsigned sh_entsize = get_te32(&shdr->sh_entsize); if (xct_off <= sh_offset) { set_te32(&shdr->sh_offset, asl_delta + sh_offset); - uint32_t addr = get_te32(&shdr->sh_addr); + upx_uint32_t addr = get_te32(&shdr->sh_addr); set_te32(&shdr->sh_addr, asl_delta + addr); } if (Elf32_Shdr::SHT_RELA== sh_type) { diff --git a/src/p_lx_elf.h b/src/p_lx_elf.h index 9883bbec..e6d1ac4d 100644 --- a/src/p_lx_elf.h +++ b/src/p_lx_elf.h @@ -68,7 +68,7 @@ protected: static unsigned gnu_hash(char const *) /*const*/; protected: - unsigned int const asl_delta = (1u<<12); // --android-shlib extra page + static unsigned int const asl_delta = (1u<<12); // --android-shlib extra page unsigned e_type; unsigned e_phnum; /* Program header table entry count */ unsigned e_shnum;