Resolve #119 and enhance ELF Python bindings

This commit is contained in:
Romain Thomas
2018-06-08 10:48:29 +02:00
parent 163cd3bcc9
commit cd1cc457cf
63 changed files with 405 additions and 183 deletions
+5
View File
@@ -1,6 +1,8 @@
#include "pyELF.hpp"
#include "LIEF/ELF/Structures.hpp"
namespace LIEF {
namespace ELF {
void init_ELF32_sizes(py::module& m) {
enum SIZES : size_t {};
py::enum_<SIZES>(m, "SIZES")
@@ -49,3 +51,6 @@ void init_ELF64_sizes(py::module& m) {
.value("VERDAUX", static_cast<SIZES>(sizeof(Elf64_Verdaux)))
.export_values();
}
}
}