mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00

It walks the stack and identifies anything that looks like a kernel symbol. This could be a lot more sophisticated.
5 lines
138 B
Bash
5 lines
138 B
Bash
#!/bin/sh
|
|
tmp=$(mktemp)
|
|
nm -C kernel > $tmp
|
|
perl -lpe '$_=hex' $tmp | paste -d" " - $tmp | sort -n | cut -d" " -f 2- > kernel.map
|
|
rm $tmp
|