ladybird/Kernel/mkmap.sh

7 lines
145 B
Bash
Raw Normal View History

#!/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