Refector the ELF builder

This commit is contained in:
Romain Thomas
2022-01-22 11:59:11 +01:00
parent 076bd5cd23
commit 72ebe0d89e
32 changed files with 3121 additions and 1821 deletions
+4 -3
View File
@@ -25,7 +25,7 @@ namespace LIEF {
namespace ELF {
template<class T>
using getter_t = T (SysvHash::*)(void) const;
using getter_t = T (SysvHash::*)() const;
template<class T>
using setter_t = void (SysvHash::*)(T);
@@ -40,8 +40,9 @@ void create<SysvHash>(py::module& m) {
&SysvHash::nbucket,
"Return the number of buckets")
.def_property_readonly("nchain",
&SysvHash::nchain,
.def_property("nchain",
static_cast<getter_t<uint32_t>>(&SysvHash::nchain),
static_cast<setter_t<uint32_t>>(&SysvHash::nchain),
"Return the number of *chains* (symbol table index)")
.def_property_readonly("buckets",