LIEF
LIEF copied to clipboard
MACHO: rpath should be rpaths
The attribute MachO.rpath
points to the first LC_RPATH
load command of the executable:
In [1]: import lief
In [2]: lief.parse('/Applications/Xcode.app/Contents/MacOS/Xcode').rpath
Out[2]: <lief.MachO.RPathCommand at 0x10ef98d50>
But there can be multiple LC_RPATH
in one executable. It's better to be rpaths
and provide an array of all rpath commands.