-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
能不能添加一个遍历ELF全部函数的方法 #14
Comments
确认是需要在运行时动态的遍历吗?如果是静态的在本地用 readelf 就可以了。 |
需要运行时遍历,因为很多so你懂的,都是执行时才会释放,我今天尝试改了一下,但是发现如果遍历debug和正常的动态链接符号,可能会有冲突,有的函数会便利两次。 |
我理解你这还是静态遍历的需求?把执行时释放的so保存成文件,然后在本地用 readelf 查看就可以了? |
嗯... 这也行的,但是我想的是能不能加个方法,内存遍历最好。因为我想运行时hook全部。:) |
嗯,理解了,我有空加一下。 |
“冲突”应该是有些符号同时被包含在了 .dynsym 和 .symtab 中,这两个 section 没有相互包含的关系,是允许存在重复符号的,所以需要去重。另外符号也分很多类型,你应该是只关心当前 ELF 的“导出函数”,需要过滤下。 |
感谢 |
请问这个功能有了么 |
the Feature, Motivation and Pitch
有时候需要对函数插装,所以需要对全部的函数进行遍历,包括debug符号 。
Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: