mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user