diff options
| author | Zichuan Li <lizic@iu.edu> | 2024-05-21 17:56:03 -0400 |
|---|---|---|
| committer | Zichuan Li <34680029+river-li@users.noreply.github.com> | 2024-05-28 12:22:23 -0400 |
| commit | 9537f33da6b8de883a45c4b7758f0dc5c1438ed7 (patch) | |
| tree | 08e9844aab5b9e830d9b30303b59fd0f022bea5a /examples | |
| parent | 2a6cef7eac64dc3df4a17ba3dc73fb5e1046fc29 (diff) | |
Solved issue #1180 by adding new APIs
1. Add two new APIs for multiple entry functions `GetAllAnalysisEntryFunctions` and `AddToEntryFunctions`
2. Add Python APIs `entry_functions` and `add_to_entry_functions`. `entry_functions` resturns a list of functions, which supports parsing functions in `init_array`, `fini_array` and TLS callbacks.
3. Modify bin-info, it now prints all entry functions
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/bin-info/src/bin-info.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/bin-info/src/bin-info.cpp b/examples/bin-info/src/bin-info.cpp index b952694d..8e920156 100644 --- a/examples/bin-info/src/bin-info.cpp +++ b/examples/bin-info/src/bin-info.cpp @@ -58,6 +58,13 @@ int main(int argc, char* argv[]) cout << "PLATFORM: " << bv->GetDefaultPlatform()->GetName() << endl; cout << endl; + cout << "------ALL ENTRY FUNCTIONS---------" << endl; + for (auto func : bv->GetAllEntryFunctions()) + { + cout << hex << func->GetStart() << " " << func->GetSymbol()->GetFullName() << endl; + } + cout << endl; + cout << "---------- 10 Functions ----------" << endl; int x = 0; for (auto func : bv->GetAnalysisFunctionList()) |
