Messages in this thread | | | Date | Mon, 20 Mar 2006 14:11:52 +0530 | From | "vamsi krishna" <> | Subject | Re: Idea to create a elf executable from running program [process2executable] |
| |
> Why don't you let execve() finish its job before modifying the mapping ? > > Once execve returns, the segments are mapped and you are free to remap them > however you want and fill them in with a state previously saved on disk. >
I dont want to remap myself after execve() because considering the potential problem of ASLR (Address Space Layout Randomization), since the segments may contain sections merged into it especially the segments with permissions 'rw-p' has .dynamic, .got sections merged into it so if I do that after execve the .dynamic and .got are put back with the old contents which crashes.
So I want to write the all the virtual adress mappings as PT_LOAD segments and leave the mapping job to the elf loader itself.
Thank you, Vamsi kundeti - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |