Parse Mach-O relocations and add MachO API to retrieve section from name

API Update:
  lief.MachO.Section.relocations - to access to the relocations
  lief.MachO.binary.get_section - Get section from name
  lief.MachO.binary.has_section -Check if section with given name exists

Resolve #57
This commit is contained in:
Romain Thomas
2017-07-17 17:22:55 +02:00
parent 114616b81d
commit 29c8157ecc
30 changed files with 1213 additions and 99 deletions
+1
View File
@@ -61,6 +61,7 @@ void init_LIEF_iterators(py::module& m) {
// MachO
// =====
#if defined(LIEF_MACHO_MODULE)
init_ref_iterator<LIEF::MachO::it_relocations>(m);
init_ref_iterator<LIEF::MachO::it_commands>(m);
init_ref_iterator<LIEF::MachO::it_symbols>(m);
init_ref_iterator<LIEF::filter_iterator<LIEF::MachO::symbols_t>>(m);