2

Is there a way to swap out the implementation of a shared library function after the library has already been loaded into a running process? I'm looking for behavior like LD_PRELOAD would normally get you, but for an existing process.

2

No, not really. You can't easily replace a library with another one inside some running processes (relocation information and addresses would be different)....

However, if you design that program and can improve its source code, you might do other tricks (e.g. dlopen(3)...)

Read wikipage on dynamic software updating.

Perhaps StackOverflow is a better place to ask such related questions, if you show some of your source code. Or maybe SoftwareEngineering...

  • Unfortunately this is a closed-source binary. – joshlf Apr 18 '17 at 19:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.