summaryrefslogtreecommitdiff
path: root/Kernel/mkmap.sh
blob: 118c0b4a5f2a395a05b31c99a6661b9d10e0c715 (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"