bingrep icon indicating copy to clipboard operation
bingrep copied to clipboard

Support printing RUNPATH

Open danielzgtg opened this issue 1 year ago • 0 comments

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
...

danielzgtg avatar Jan 08 '25 09:01 danielzgtg