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

myocytebd at sina dot com sourceware-bugzilla@sourceware.org
Fri Jun 2 13:18:00 GMT 2017


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.


More information about the Elfutils-devel mailing list