1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

Kernel: Use our toolchain's c++filt tool for the kernel map

The host's version of c++filt might not work on some operating systems,
e.g. macOS.
This commit is contained in:
Gunnar Beutner 2021-07-29 08:48:47 +02:00 committed by Andreas Kling
parent a68d912dc0
commit b7ca269b4d
3 changed files with 4 additions and 2 deletions

View file

@ -2,5 +2,6 @@
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
c++filt < "$tmp" >> kernel.map
CXXFILT="${CXXFILT:-c++filt}"
"$CXXFILT" < "$tmp" >> kernel.map
rm -f "$tmp"