I know dlopen is used for loading a shared library compiled with "-shared" and possibly "-fPIC". But since the executable and dynamic library share the same format, I'm wondering if it is possible to directly load an executable?
It is acceptable that we may need to re-construct a customized dlopen and dlsym, just want to know whether it is possible to do such things while being transparent to the binaries.
BTW, It is also acceptable that the loaded executable cannot be reused (since it is not compiled with -fPIC).
Thanks in advance.