summaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorJeremy Linton <jeremy.linton@arm.com>2025-07-14 17:29:23 -0500
committerMasahiro Yamada <masahiroy@kernel.org>2025-07-26 15:31:30 +0900
commitb9f75396ec107628cc5f52fb6e055c1c9dc68401 (patch)
tree4ff74af6f129325ea9d2309745c15aa363fdbb57 /lib/crypto/mpi/mpi-bit.c
parentd8f26717c901b7ec88c3151988fe70ecaed990b8 (diff)
scripts: add zboot support to extract-vmlinux
Zboot compressed kernel images are used for arm64 kernels on various distros. extract-vmlinux fails with those kernels because the wrapped image is another PE. While this could be a bit confusing, the tools primary purpose of unwrapping and decompressing the contained kernel image makes it the obvious place for this functionality. Add a 'file' check in check_vmlinux() that detects a contained PE image before trying readelf. Recent (FILES_39, Jun/2020) file implementations output something like: "Linux kernel ARM64 boot executable Image, little-endian, 4K pages" Which is also a stronger statement than readelf provides so drop that part of the comment. At the same time this means that kernel images which don't appear to contain a compressed image will be returned rather than reporting an error. Which matches the behavior for existing ELF files. The extracted PE image can then be inspected, or used as would any other kernel PE. Signed-off-by: Jeremy Linton <jeremy.linton@arm.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'lib/crypto/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions