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