PackLinuxElf64::generateElfHdr() .p_flags are only 32 bits

This commit is contained in:
John Reiser
2006-09-06 10:36:50 -07:00
parent f24d96d59f
commit 6c59b73ae5
+1 -1
View File
@@ -1165,7 +1165,7 @@ PackLinuxElf64::generateElfHdr(
set_native64(&h2->phdr[1].p_paddr, brkb); set_native64(&h2->phdr[1].p_paddr, brkb);
h2->phdr[1].p_filesz = 0; h2->phdr[1].p_filesz = 0;
h2->phdr[1].p_memsz = 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 #undef PAGE_MASK
} }
if (ph.format==getFormat()) { if (ph.format==getFormat()) {