开发者

How to hook a function for a particular shared ELF library?

开发者 https://www.devze.com 2023-01-04 01:02 出处:网络
LD_PRELOAD hooks some functi开发者_开发技巧ons 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 functio

LD_PRELOAD hooks some functi开发者_开发技巧ons 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消