Enable support for modifying section-less ELF binaries

This commit is contained in:
Romain Thomas
2022-04-03 19:34:44 +02:00
parent 1307d34b55
commit 266f989e52
20 changed files with 562 additions and 585 deletions
+7
View File
@@ -52,6 +52,13 @@ void create<Section>(py::module& m) {
.def(py::init<>(),
"Default constructor")
.def("as_frame",
&Section::as_frame,
py::return_value_policy::reference_internal)
.def_property_readonly("is_frame",
&Section::is_frame)
.def(py::init<const std::string&, ELF_SECTION_TYPES>(),
"Constructor from a name and a section type",
"name"_a, "type"_a = ELF_SECTION_TYPES::SHT_PROGBITS)