mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
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
|