mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:47:35 +00:00
Kernel: Use the toolchain's nm
in mkmap.sh
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.
This commit is contained in:
parent
9d3623f0e8
commit
7608af13cd
2 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
tmp=$(mktemp)
|
||||
nm -n Kernel | grep -vE \\.Lubsan_data | awk '{ if ($2 != "a") print; }' | uniq > "$tmp"
|
||||
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
|
||||
CXXFILT="${CXXFILT:-c++filt}"
|
||||
"$CXXFILT" < "$tmp" >> kernel.map
|
||||
cat "$tmp" >> kernel.map
|
||||
rm -f "$tmp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue