OSDN Git Service

elf2dmp: replace PE export name check with PDB name check
authorViktor Prutyanov <viktor@daynix.com>
Fri, 15 Sep 2023 17:01:49 +0000 (20:01 +0300)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2023 15:07:14 +0000 (16:07 +0100)
commit3c407ec67f94f8dc189f3e47a6419431d15ff084
tree01a710e00f049aa71a0433f2f0b2ed5301771cd7
parent058262e0a8b23b7b45003749efe5246294195324
elf2dmp: replace PE export name check with PDB name check

PE export name check introduced in d399d6b179 isn't reliable enough,
because a page with the export directory may be not present for some
reason. On the other hand, elf2dmp retrieves the PDB name in any case.
It can be also used to check that a PE image is the kernel image. So,
check PDB name when searching for Windows kernel image.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=2165917
Signed-off-by: Viktor Prutyanov <viktor@daynix.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-id: 20230915170153.10959-2-viktor@daynix.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
contrib/elf2dmp/main.c