mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
c928b06218
It walks the stack and identifies anything that looks like a kernel symbol. This could be a lot more sophisticated.
6 lines
138 B
Bash
6 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
|