Skip to content

Commit

Permalink
Revert back to library.exported_functions
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Nov 2, 2024
1 parent bcc74d5 commit 131ad2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/symbol-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def get_exported_exports(library) -> list[str]:
if library.format == lief.Binary.FORMATS.ELF:
return [symbol.name for symbol in library.exported_symbols]
elif library.format == lief.Binary.FORMATS.PE:
return [entry.name for entry in library.get_export().entries]
return [function.name for function in library.exported_functions]
elif library.format == lief.Binary.FORMATS.MACHO:
return [symbol.name[1:] for symbol in library.exported_symbols]
return [function.name[1:] for function in library.exported_functions]
raise NotImplementedError(f"Unsupported format: {library.format}")


Expand Down

0 comments on commit 131ad2a

Please sign in to comment.