This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libdwfl/linux-kernel-modules.c (report_kernel): Pass add_p_vaddr as true.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 26 Aug 2013 16:03:16 +0200
- Subject: Re: [PATCH] libdwfl/linux-kernel-modules.c (report_kernel): Pass add_p_vaddr as true.
On Thu, 2013-08-22 at 13:45 +0200, Mark Wielaard wrote:
> On some architectures (e.g. x86_64) the vmlinux is ET_EXEC, while on
> others (e.g. ppc64) it is ET_DYN. In both cases the phdr p_vaddr will
> be non-zero. We want the image to be placed as if it was ET_DYN, so
> pass true for add_p_vaddr which will do the right thing (in combination
> with a zero base) in either case.
I pushed this and will also backport it to the fedora elfutils package
since it fixes an issue on ppc64 the systemtap hackers are seeing.
Cheers,
Mark