Hi -

> 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

The elf_begin() call may have specified ELF_C_READ_MMAP, in which case
the content is mmapped PROT_READ-only.

- FChE

Reply via email to