fix wrong p_align header entry size in elf generation

another regression which was introduced in 01b6e60775
was changing the p_align header entry size from 32 to 64 bits.

this commit fixes this regression.
This commit is contained in:
Gilad Reti 2023-04-22 15:48:13 +03:00 committed by Anton Kochkov
parent beeef61a6a
commit 0b2c1ed243

View file

@ -443,7 +443,7 @@ static bool create_set_phdr(RzBuffer *result, Elf_(Word) baddr, int codelen) {
rz_buf_append_ut32(result, length) && // p_filesz
rz_buf_append_ut32(result, length) && // p_memsz
rz_buf_append_ut32(result, PF_X | PF_R) && // p_flags
rz_buf_append_ut64(result, 0x1000); // p_align
rz_buf_append_ut32(result, 0x1000); // p_align
#endif
}