summaryrefslogtreecommitdiff
path: root/Kernel/mkmap.sh
blob: 2f1b7aa872d609232d9e929f6f84c0df23da657f (plain)
1
2
3
4
5
6
#!/bin/sh
tmp=$(mktemp)
nm -n kernel | awk '{ if ($2 != "a") print; }' | uniq > $tmp
printf "%08x\n" $(wc -l $tmp | cut -f1 -d' ') > kernel.map
cat $tmp >> kernel.map
rm -f $tmp