title: Linux userland exec
body: <p>I need a C library which lets me exec() a statically linked binary, without invoking the <em>execve()</em> system call. The reason why the system call wouldn't work is that the binary file is not executable, and it's not possible to make it executable on that system. For dynamically linked binaries, running <code>/lib/ld-linux.so.2 progname</code> does the trick, but that segfaults on my statically linked binary.</p>
  
  <p>I've found ul_exec 1.1 on <a href="http://archive.cert.uni-stuttgart.de/bugtraq/2004/01/msg00002.html" rel="nofollow">http://archive.cert.uni-stuttgart.de/bugtraq/2004/01/msg00002.html</a> , but that seems to segfault for its own <em>Hello, World</em> binary on my system.</p>
  
  <p>One option would be to make a copy of the binary, make the copy executable, and call <em>execve()</em>. I'm looking for a solution which doesn't need such a copy (because of performance reasons).</p>