Skip to content

Commit

Permalink
utils: fix bininfo helper
Browse files Browse the repository at this point in the history
Correctly handle binaries with a `runpath` entry.
  • Loading branch information
benoit-pierre committed Oct 4, 2024
1 parent d55129f commit 192a096
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/bininfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class LibraryInfo:
soname : str = None
needed : list = dataclasses.field(default_factory=list)
rpath : str = None
runpath : str = None
provides : list = dataclasses.field(default_factory=set)
unresolved: list = dataclasses.field(default_factory=set)
upneeded : list = dataclasses.field(default_factory=list)
Expand Down Expand Up @@ -226,6 +227,8 @@ def dumpinfo(info):
print(' SONAME :', info.soname)
if info.rpath is not None:
print(' RPATH :', info.rpath)
if info.runpath is not None:
print(' RUNPATH :', info.runpath)
for need in info.needed:
print(' NEEDED :', need)
for export in info.upneeded:
Expand Down

0 comments on commit 192a096

Please sign in to comment.