Sasha Da Rocha Pinheiro
Tue Jun 25 05:22:00 GMT 2019
Oh, of course, that might be it.
Do you know if when it's open with write permission, changes will be mapped back to the file?
From: Frank Ch. Eigler
Sent: Monday, June 24, 5:06 PM
Subject: Re: Elf64_Phdr
To: Sasha Da Rocha Pinheiro
> 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.
More information about the Elfutils-devel