This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug backends/21541] eu-readelf --notes fails to dump PRSTATUS data?


https://sourceware.org/bugzilla/show_bug.cgi?id=21541

--- Comment #2 from myocytebd at sina dot com ---
(In reply to Mark Wielaard from comment #1)
> Since you are installing in a non-standard location make sure PATH and
> LD_LIBRARY_PATH are setup correctly so the correct version of the binaries,
> libraries and backends are picked up.
> 
> In your case it should probably be
> export PATH=/home/xxx/ins/bin:$PATH
> export LD_LIBRARY_PATH=/home/xxx/ins/lib:/home/xxx/ins/lib/elfutils

I checked that it is using the correct libdw/libelf.
I patched rpath of eu-readelf(In reply to Mark Wielaard from comment #1)
> Since you are installing in a non-standard location make sure PATH and
> LD_LIBRARY_PATH are setup correctly so the correct version of the binaries,
> libraries and backends are picked up.
> 
> In your case it should probably be
> export PATH=/home/xxx/ins/bin:$PATH
> export LD_LIBRARY_PATH=/home/xxx/ins/lib:/home/xxx/ins/lib/elfutils

Thanks.
/home/xxx/ins/lib/elfutils => This is the problem.

I looked at: libebl/eblopenbackend.c,
and found openbackend() implementation surprising:
1. It doesn't try relative path from the executable.
2. It doesn't try the path from --prefix.
3. When it failed to load, it doesn't print any message.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]