commit | 8e5393c6799cdf07ab5f05bc8ab5d44929940e5f | [log] [tgz] |
---|---|---|
author | Mark Wielaard <mjw@redhat.com> | Tue Jul 02 13:35:29 2013 +0200 |
committer | Mark Wielaard <mjw@redhat.com> | Mon Jul 08 12:28:43 2013 +0200 |
tree | d65bcac2f950066fd7891960465471383d0239b4 | |
parent | 5704c8c4fa717b6e9c2d2e4304dfbc810ad42e4b [diff] |
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.