LD_PRELOAD hooks some functions for the entire process, but I need to hook a particular function for only one dynamically linked library by its name.
See the article Redirecting functions in shared ELF libraries. There's code of ELF hooking attached.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With