1、安装abootimg
$ sudo apt install abootimg
2、解压boot.img
$ abootimg -x ./boot/boot.img
$ file zImage
zImage: data
3、安装vmlinux-to-elf
$ sudo apt install python3-pip
$sudo pip3 install --upgrade lz4 git+https://github.com/marin-m/vmlinux-to-elf
4、将zImage 转换成 elf 格式
$ vmlinux-to-elf zImage out.elf
$ file out.elf
out.elf: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, not stripped
5、查看elf中的符号
$ nm out.elf
参考:
https://cloud.tencent.com/developer/news/244460
https://github.com/marin-m/vmlinux-to-elf