LIEF icon indicating copy to clipboard operation
LIEF copied to clipboard

MACHO: rpath should be rpaths

Open ChiChou opened this issue 5 years ago • 0 comments

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.

ChiChou avatar Apr 23 '19 07:04 ChiChou