This is the mail archive of the
mailing list for the elfutils project.
Re: elfutils build error
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 02 Mar 2016 15:20:04 +0100
- Subject: Re: elfutils build error
On Sun, 2016-02-28 at 08:40 +0100, phi gcc wrote:
> HI Mark and All
> I am pretty happy with readelf for what I am doing, yet I got one more
> question is there a way to build readelf linked -archive with
> ../libelf ../libdw
> I build readelf -g as well as the ../lib* and I need to debug all that.
> I am asking for a 'normal' ay of doing this, i.e is there a "make
> something" that I should do.
If you are asking whether elfutils supports static linking then then the
answer is currently no. The tools, libdw and libasm that rely on libebl
load the backend code for the various arches through ldopen. See
If you are asking how to debug a non-installed version of an elfutils
tool then doing the following should just work:
LD_LIBRARY_PATH=backends:libelf:libdw:libasm gdb --args src/readelf ...