Closed Roger-Shepherd closed 3 years ago
Now that I have implemented the handling of macho and elf using lief I can report that the logic for both macho and dwarf is identical, and the only place where a check is made on the format is to check that the magic number at the start of the file matches that expected.
I'm intending using the lief-project to help with handling of macho files in benchmark_speed.py.
section.name.startswith(target_name)
(to deal with groups) and for macho it istarget_name == section.name
. The lief code is simpler than the existing code (IMHO).Do either of these give us a problem?