mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user