mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
b7ca269b4d
The host's version of c++filt might not work on some operating systems, e.g. macOS.
8 lines
256 B
Bash
8 lines
256 B
Bash
#!/bin/sh
|
|
tmp=$(mktemp)
|
|
nm -n Kernel | grep -vE \\.Lubsan_data | awk '{ if ($2 != "a") print; }' | uniq > "$tmp"
|
|
printf "%08x\n" "$(wc -l "$tmp" | awk '{print $1}')" > kernel.map
|
|
CXXFILT="${CXXFILT:-c++filt}"
|
|
"$CXXFILT" < "$tmp" >> kernel.map
|
|
rm -f "$tmp"
|