Extrahiere vmlinux aus vmlinuz oder bzImage

Ich möchte System.map aus vmlinuz generieren, da die meisten Computer nicht über die Datei System.map verfügen. Tatsächlich werden vmlinuz in vmlinuz oder bzImage komprimiert.

Kann das irgendein Tool oder Skript?

Ich habe es versucht:

dd if=/boot/vmlinuz skip=`grep -a -b -o -m 1 -e 

Es war gescheitert:

zcat: stdin: not in gzip format
32769+0 records in
32768+0 records out
\x1f\x8b\x08\x00' /boot/vmlinuz | cut -d: -f 1` bs=1 | zcat > /tmp/vmlinux

Es war gescheitert:

zcat: stdin: not in gzip format
32769+0 records in
32768+0 records out

Antworten auf die Frage(3)

Ihre Antwort auf die Frage