I use ptrace() to attach to exePDS and then inject a block of code onto stack. This code calls dlopen, dlsym, the module entry, dlclose and returns control back to exeDSP.
For me this is the most convenient way to attach my stuff to exeDSP.
The syntax (with given example) is
Code: Select all
./injectso `pidof exeDSP` module.so Inject_Main /dtv/
Cheers,
SM