1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

MSVC strikes again

modified:   p_lx_elf.cpp
	modified:   p_lx_elf.h
This commit is contained in:
John Reiser 2018-01-15 16:27:00 -08:00
parent c34fe09a79
commit 86745721ee
2 changed files with 2 additions and 2 deletions

View File

@ -2621,7 +2621,7 @@ void PackLinuxElf32::pack1(OutputFile *fo, Filter & /*ft*/)
unsigned sh_entsize = get_te32(&shdr->sh_entsize); unsigned sh_entsize = get_te32(&shdr->sh_entsize);
if (xct_off <= sh_offset) { if (xct_off <= sh_offset) {
set_te32(&shdr->sh_offset, asl_delta + 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); set_te32(&shdr->sh_addr, asl_delta + addr);
} }
if (Elf32_Shdr::SHT_RELA== sh_type) { if (Elf32_Shdr::SHT_RELA== sh_type) {

View File

@ -68,7 +68,7 @@ protected:
static unsigned gnu_hash(char const *) /*const*/; static unsigned gnu_hash(char const *) /*const*/;
protected: 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_type;
unsigned e_phnum; /* Program header table entry count */ unsigned e_phnum; /* Program header table entry count */
unsigned e_shnum; unsigned e_shnum;