mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
c928b06218
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
|