27 """Adapter function to get exported symbols based on the library format."""
28 if library.format == lief.Binary.FORMATS.ELF:
29 return [symbol.name
for symbol
in library.exported_symbols]
30 elif library.format == lief.Binary.FORMATS.PE:
31 return [entry.name
for entry
in library.get_export().entries]
32 elif library.format == lief.Binary.FORMATS.MACHO:
33 return [symbol.name[1:]
for symbol
in library.exported_symbols]
34 raise NotImplementedError(f
"Unsupported format: {library.format}")