Skip to content
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

How to traverse memory segments and get their data? #6491

Open
JerryZhongJ opened this issue Apr 11, 2024 · 0 comments
Open

How to traverse memory segments and get their data? #6491

JerryZhongJ opened this issue Apr 11, 2024 · 0 comments

Comments

@JerryZhongJ
Copy link

JerryZhongJ commented Apr 11, 2024

I'm using binary-c API. I need to read modules from arbitrary binaries and do some analysis on them, including analyzing their data sections.

I find BinaryenCopyMemorySegmentData(BinaryenModuleRef module, const char* segmentName, char* buffer), but this requires segmentName, which I can't determine for an arbitrary binary. I don't find any API like BinaryenGetMemorySegmentByIndex or BinaryenMemorySegmentGetName just like those for functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant