简体   繁体   中英

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

LD_PRELOAD为整个进程挂钩了一些函数,但是我需要通过名称只为一个动态链接库挂钩一个特定的函数。

See the article Redirecting functions in shared ELF libraries . There's code of ELF hooking attached.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM