1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:47:45 +00:00

Kernel: Ignore KUBSAN symbols in the kernel symbol map

This commit is contained in:
Gunnar Beutner 2021-07-16 13:53:53 +02:00 committed by Andreas Kling
parent 2845c6753e
commit 294b918e9b

View file

@ -5,7 +5,7 @@ if [ -f Kernel32 ]; then
else
kernel_binary=Kernel64
fi
nm -n $kernel_binary | awk '{ if ($2 != "a") print; }' | uniq > "$tmp"
nm -n $kernel_binary | grep -vE \\.Lubsan_data | awk '{ if ($2 != "a") print; }' | uniq > "$tmp"
printf "%08x\n" "$(wc -l "$tmp" | cut -f1 -d' ')" > kernel.map
c++filt < "$tmp" >> kernel.map
rm -f "$tmp"