mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
7608af13cd
By using the binary from our build of binutils, we can be sure that `nm` supports demangling symbols, so we can avoid spawning a separate `c++filt` process.
7 lines
238 B
Bash
7 lines
238 B
Bash
#!/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"
|