Expose ELF relocation info

This commit is contained in:
Romain Thomas
2018-06-06 14:13:07 +02:00
parent c8404450b7
commit 163cd3bcc9
5 changed files with 50 additions and 19 deletions
+5
View File
@@ -39,6 +39,11 @@ void init_ELF_Relocation_class(py::module& m) {
static_cast<setter_t<int64_t>>(&Relocation::addend),
"Additional value")
.def_property("info",
static_cast<getter_t<uint32_t>>(&Relocation::info),
static_cast<setter_t<uint32_t>>(&Relocation::info),
"Extra information like symbol index")
.def_property("purpose",
static_cast<getter_t<RELOCATION_PURPOSES>>(&Relocation::purpose),
static_cast<setter_t<RELOCATION_PURPOSES>>(&Relocation::purpose),