]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Don't assert on mod->e_type in __libdwfl_relocate_value.
authorMark Wielaard <mjw@redhat.com>
Tue, 2 Jul 2013 11:35:29 +0000 (13:35 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 8 Jul 2013 10:28:43 +0000 (12:28 +0200)
commit8e5393c6799cdf07ab5f05bc8ab5d44929940e5f
treed65bcac2f950066fd7891960465471383d0239b4
parent5704c8c4fa717b6e9c2d2e4304dfbc810ad42e4b
Don't assert on mod->e_type in __libdwfl_relocate_value.

When setting up the module and searching for an ELF file with a correct
build_id __libdwfl_relocate_value will be called for an ET_REL file in
__libdwfl_find_elf_build_id but mod->e_type is not yet setup in that case
because the Dwfl_Module isn't yet complete (the build-id could mismatch).
This can happen when using the dwfl_linux_kernel_find_elf callback when
it searches for the ELF file matching a kernel module.
libdwfl/ChangeLog
libdwfl/relocate.c