Hotpatch is a library that can be used to dynamically load a shared library (.so file) on Linux from one process into another already running process, without affecting the execution of the target processs. The API is a C API, but also supported in C++. It is limited to the Intel x86 and x86-64 (amd64) architectures.

Hotpatch is BSD licensed and the C API should allow you to write wrappers in other languages such as Python, Perl etc.

The source code can be found on Github and has had interest from about 100 users.

I would love to hear how you choose to use this library, so email me or contact me on Twitter or open an issue on Github.