Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support printing RUNPATH #43

Open
danielzgtg opened this issue Jan 8, 2025 · 0 comments
Open

Support printing RUNPATH #43

danielzgtg opened this issue Jan 8, 2025 · 0 comments

Comments

@danielzgtg
Copy link

I'm debugging an executable's library loading and the RUNPATH line from bingrep is meaningless compared to readelf.

Expected Behavior

$ readelf -d whisper-cli

Dynamic section at offset 0x5e590 contains 37 entries:
  Tag        Type                         Name/Value
 0x000000000000001d (RUNPATH)            Library runpath: [/home/home/CLionProjects/whisper.cpp/build/src:/home/home/CLionProjects/whisper.cpp/build/ggml/src:/home/home/CLionProjects/whisper.cpp/build/ggml/src/ggml-hip:/opt/rocm-6.3.1/lib:/opt/rocm/lib:]
 0x0000000000000001 (NEEDED)             Shared library: [libwhisper.so.1]
...

Actual Behavior

0x92bf is printed instead of the text.

$ bingrep --version
bingrep 0.11.0
$ bingrep whisper-cli
...
Dynamic(37):
      DT_RUNPATH 0x92bf
       DT_NEEDED libwhisper.so.1
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant