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

Kernel: Don't symbolicate symbol+offset for obvious non-kernel addresses.

This commit is contained in:
Andreas Kling 2019-04-30 14:47:22 +02:00
parent f4b190c58b
commit 28244039a5
3 changed files with 28 additions and 11 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
tmp=$(mktemp)
nm -nC kernel | uniq > $tmp
nm -nC kernel | awk '{ if ($2 != "a") print; }' | uniq > $tmp
printf "%08x\n" $(wc -l $tmp | cut -f1 -d' ') > kernel.map
cat $tmp >> kernel.map
rm -f $tmp