Enable ELF interpreter modification (without size restriction)

See: 'examples/python/changer_elf_interpreter.py' for usage

Resolve: #86
This commit is contained in:
Romain Thomas
2017-09-07 11:23:06 +02:00
parent f3e7c8d14b
commit b2d36940f6
12 changed files with 256 additions and 47 deletions
@@ -42,7 +42,8 @@ void init_ELF_DynamicEntryArray_class(py::module& m) {
.def_property("array",
static_cast<std::vector<uint64_t>& (DynamicEntryArray::*) (void)>(&DynamicEntryArray::array),
static_cast<setter_t<const std::vector<uint64_t>&>>(&DynamicEntryArray::array),
"Return the array")
"Return the array",
py::return_value_policy::reference)
.def("__eq__", &DynamicEntryArray::operator==)
.def("__ne__", &DynamicEntryArray::operator!=)