Skip to content

Commit

Permalink
Updated symbols for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-urbanczyk committed Apr 28, 2020
1 parent b8e4748 commit 7577108
Show file tree
Hide file tree
Showing 2 changed files with 99,616 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dump_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@
for lib in libs:
p = lief.parse(lib)

if hasattr(p, 'exported_symbols'):
if name=='linux':
for s in p.exported_symbols:
exported_symbols.append(f'{s.name}\n')
elif name=='mac':
for s in p.symbols:
if s.type>1:
exported_symbols.append(f'{s.name}\n')
else:
for s in p.exported_functions:
exported_symbols.append(f'{s}\n')
Expand Down
Loading

0 comments on commit 7577108

Please sign in to comment.