Hi all, If I have a Elf64_Phdr, why can't I straight change its elements, like, I'm getting seg fault when trying to do: (see gdb output)
... received signal SIGSEGV, Segmentation fault.
...
957 oldPhdr->p_vaddr = 0x1235;
(gdb) p/x oldPhdr
$11 = 0x3ffb4bf0040
(gdb) p/x *oldPhdr
$12 = {p_type = 0x6, p_flags = 0x5, p_offset = 0x40, p_vaddr = 0x400040,
p_paddr = 0x400040, p_filesz = 0x1c0, p_memsz = 0x1c0, p_align = 0x8}
Regards
Sasha
