Add relocation in the Abstract layer

The abstracted attributes are:
  * Address: virtual address where the relocation occurs
  * Size: size in bits of the relocation

See: LIEF::Relocation / lief.Relocation and abstract_reader

Resolve: #53
This commit is contained in:
Romain Thomas
2017-09-05 22:00:31 +02:00
parent 58bf7a2987
commit 9503f2fc7b
42 changed files with 785 additions and 214 deletions
+5
View File
@@ -66,6 +66,11 @@ void init_LIEF_Binary_class(py::module& m) {
"Return a list in **read only** of binary's abstract " RST_CLASS_REF(lief.Section) "",
py::return_value_policy::reference_internal)
.def_property_readonly("relocations",
static_cast<it_t<it_relocations>>(&Binary::relocations),
"Return an iterator over abstract " RST_CLASS_REF(lief.Relocation) "",
py::return_value_policy::reference_internal)
.def_property_readonly("exported_functions",
[] (const Binary& binary) {
const std::vector<std::string>& exported_functions = binary.get_exported_functions();