lkml.org 
[lkml]   [2006]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2006-03-20 09:44    [W:0.082 / U:1.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site