GrammaTech / gtirb

Intermediate Representation for Binary analysis and transformation
https://grammatech.github.io/gtirb/
Other
305 stars 36 forks source link

How to get program or dll entry point from Gtirb IR for PE and ELF binaries? #56

Closed swang206 closed 2 years ago

swang206 commented 2 years ago

Thank you.

tjohnson-gt commented 2 years ago

Module has a a field for the entry point. In C++, you can access it with Module::getEntryPoint(). In python, you can access it directly with the entry_point variable attached to a Module instance.