mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
Kernel: Embed the right symbol count into the kernel.map file on macOS
On macOS the wc tool prefixes its output with a bunch of spaces which resulted in us incorrectly using "00000000" as the symbol count. Fixes #9080.
This commit is contained in:
parent
16006e2d8e
commit
a68d912dc0
Notes:
sideshowbarker
2024-07-18 07:56:16 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/a68d912dc02 Pull-request: https://github.com/SerenityOS/serenity/pull/9084 Issue: https://github.com/SerenityOS/serenity/issues/9080
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
tmp=$(mktemp)
|
||||
nm -n Kernel | grep -vE \\.Lubsan_data | awk '{ if ($2 != "a") print; }' | uniq > "$tmp"
|
||||
printf "%08x\n" "$(wc -l "$tmp" | cut -f1 -d' ')" > kernel.map
|
||||
printf "%08x\n" "$(wc -l "$tmp" | awk '{print $1}')" > kernel.map
|
||||
c++filt < "$tmp" >> kernel.map
|
||||
rm -f "$tmp"
|
||||
|
|
Loading…
Reference in a new issue