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:
parent
beeef61a6a
commit
0b2c1ed243
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue