blob: 5400259468148346cdfb676dbe6992e2dd0f64f4 (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
tmp=$(mktemp)
NM="${NM:-nm}"
"$NM" -C -n Kernel | grep -vE \\.Lubsan_data | awk '{ if ($2 != "a") print; }' | uniq > "$tmp"
printf "%08x\n" "$(wc -l "$tmp" | awk '{print $1}')" > kernel.map
cat "$tmp" >> kernel.map
rm -f "$tmp"
|