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:
parent
c34fe09a79
commit
86745721ee
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user