feat(macho): allow to create MainCommand in Python

This commit is contained in:
Louis Brunner
2023-06-07 15:42:14 +01:00
parent e3071a1e40
commit a7b114d8bb
3 changed files with 10 additions and 0 deletions
@@ -41,6 +41,7 @@ void create<MainCommand>(py::module& m) {
Class that represent the LC_MAIN command. This kind
of command can be used to determine the entrypoint of an executable
)delim")
.def(py::init<uint64_t, uint64_t>())
.def_property("entrypoint",
static_cast<getter_t<uint64_t>>(&MainCommand::entrypoint),