PackLinuxElf64::generateElfHdr() .p_flags are only 32 bits
This commit is contained in:
parent
f24d96d59f
commit
6c59b73ae5
@ -1165,7 +1165,7 @@ PackLinuxElf64::generateElfHdr(
|
||||
set_native64(&h2->phdr[1].p_paddr, brkb);
|
||||
h2->phdr[1].p_filesz = 0;
|
||||
h2->phdr[1].p_memsz = 0;
|
||||
set_native64(&h2->phdr[1].p_flags, Elf64_Phdr::PF_R | Elf64_Phdr::PF_W);
|
||||
set_native32(&h2->phdr[1].p_flags, Elf64_Phdr::PF_R | Elf64_Phdr::PF_W);
|
||||
#undef PAGE_MASK
|
||||
}
|
||||
if (ph.format==getFormat()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user