Skip to content

Commit

Permalink
Use the same dependency walk logic as otool
Browse files Browse the repository at this point in the history
  • Loading branch information
ttsugriy committed Oct 26, 2016
1 parent 59c1f82 commit 58edb68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions macholib/MachO.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 24,15 @@
_RELOCATABLE = set((
# relocatable commands that should be used for dependency walking
LC_LOAD_DYLIB,
LC_LOAD_UPWARD_DYLIB,
LC_LOAD_WEAK_DYLIB,
LC_PREBOUND_DYLIB,
LC_REEXPORT_DYLIB,
))

_RELOCATABLE_NAMES = {
LC_LOAD_DYLIB: 'load_dylib',
LC_LOAD_UPWARD_DYLIB: 'load_upward_dylib',
LC_LOAD_WEAK_DYLIB: 'load_weak_dylib',
LC_PREBOUND_DYLIB: 'prebound_dylib',
LC_REEXPORT_DYLIB: 'reexport_dylib',
Expand Down

0 comments on commit 58edb68

Please sign in to comment.