From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67776 invoked by alias); 2 Jun 2017 11:53:40 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 67717 invoked by uid 48); 2 Jun 2017 11:53:36 -0000 From: "myocytebd at sina dot com" To: elfutils-devel@sourceware.org Subject: [Bug backends/21541] eu-readelf --notes fails to dump PRSTATUS data? Date: Fri, 02 Jun 2017 13:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: backends X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: myocytebd at sina dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2017-q2/txt/msg00232.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D21541 --- 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 binarie= s, > libraries and backends are picked up. >=20 > In your case it should probably be > export PATH=3D/home/xxx/ins/bin:$PATH > export LD_LIBRARY_PATH=3D/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 binarie= s, > libraries and backends are picked up. >=20 > In your case it should probably be > export PATH=3D/home/xxx/ins/bin:$PATH > export LD_LIBRARY_PATH=3D/home/xxx/ins/lib:/home/xxx/ins/lib/elfutils Thanks. /home/xxx/ins/lib/elfutils =3D> 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. --=20 You are receiving this mail because: You are on the CC list for the bug.