Skip to content

Commit 131ad2a

Browse files
committed
Revert back to library.exported_functions
1 parent bcc74d5 commit 131ad2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/symbol-check.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ def get_exported_exports(library) -> list[str]:
2828
if library.format == lief.Binary.FORMATS.ELF:
2929
return [symbol.name for symbol in library.exported_symbols]
3030
elif library.format == lief.Binary.FORMATS.PE:
31-
return [entry.name for entry in library.get_export().entries]
31+
return [function.name for function in library.exported_functions]
3232
elif library.format == lief.Binary.FORMATS.MACHO:
33-
return [symbol.name[1:] for symbol in library.exported_symbols]
33+
return [function.name[1:] for function in library.exported_functions]
3434
raise NotImplementedError(f"Unsupported format: {library.format}")
3535

3636

0 commit comments

Comments
 (0)