Fully handle section-less ELF binaries

* Fix #25
  * ELF `tiny` binaries are now handled (see #7)
  * Computation of dynamic symbols can be done with differents methods:
    hash table, sections and relocations. (See LIEF::ELF::DYNSYM_COUNT_METHODS)
  * ELF parser can be configured to use one of the DYNSYM_COUNT_METHODS
  * Improve tests
This commit is contained in:
Romain Thomas
2017-04-26 14:51:23 +02:00
parent 7dc5ad7142
commit 77d43f9db4
18 changed files with 449 additions and 60 deletions
+8
View File
@@ -746,4 +746,12 @@ void init_ELF_Structures_enum(py::module& m) {
.value(PY_ENUM(RELOC_i386::R_386_IRELATIVE))
.value(PY_ENUM(RELOC_i386::R_386_NUM))
.export_values();
py::enum_<DYNSYM_COUNT_METHODS>(m, "DYNSYM_COUNT_METHODS")
.value(PY_ENUM(DYNSYM_COUNT_METHODS::COUNT_AUTO))
.value(PY_ENUM(DYNSYM_COUNT_METHODS::COUNT_SECTION))
.value(PY_ENUM(DYNSYM_COUNT_METHODS::COUNT_HASH))
.value(PY_ENUM(DYNSYM_COUNT_METHODS::COUNT_RELOCATIONS))
.export_values();
}