The ELF format for executables that linux uses does not support live binary files, so there is currently no reasonable way to do this.
There is an extension for ELF, available at http://icculus.org/fatelf/ , to use it you need to fix various parts (linux kernel, binutils, glibc, etc.), because these changes are not yet integrated into the trunk.
source
share