2018-10-26 22:32:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
tmp=$(mktemp)
|
2019-04-30 14:47:22 +02:00
|
|
|
nm -nC kernel | awk '{ if ($2 != "a") print; }' | uniq > $tmp
|
2018-12-03 02:23:49 +01:00
|
|
|
printf "%08x\n" $(wc -l $tmp | cut -f1 -d' ') > kernel.map
|
|
|
|
cat $tmp >> kernel.map
|
|
|
|
rm -f $tmp
|