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:
parent
a68d912dc0
commit
b7ca269b4d
3 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue