blob: 15231e8fcd54be1c8010ad1555f37ffdd611dcdd (
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"
|