libdwfl/linux-kernel-modules.c (report_kernel): Pass add_p_vaddr as true.
authorMark Wielaard <mjw@redhat.com>
Thu, 22 Aug 2013 11:45:16 +0000 (13:45 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 26 Aug 2013 13:59:28 +0000 (15:59 +0200)
commit16fa414aff02365534b7bbeab281c731b9c4497d
treec65d9c86eacd38168825d0c0182199a645dddd35
parent5779540a60bf76504a61ee8439330dd9074255a2
libdwfl/linux-kernel-modules.c (report_kernel): Pass add_p_vaddr as true.

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.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libdwfl/ChangeLog
libdwfl/linux-kernel-modules.c