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

Kernel: Make new kernel build process work on macOS

Use objcopy from the toolchain so that the changes introduced in
7236584 will succeed on macOS.

Fixes #8768.
This commit is contained in:
Gunnar Beutner 2021-07-15 18:17:58 +10:00 committed by Gunnar Beutner
parent 3b5b7c5e65
commit e4f05a9046
3 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,6 @@
#!/bin/sh
tmp=$(mktemp)
(cat kernel.map; printf '%b' '\0') > "$tmp"
objcopy --update-section .ksyms="$tmp" Kernel
OBJCOPY="${OBJCOPY:-objcopy}"
"$OBJCOPY" --update-section .ksyms="$tmp" Kernel
rm -f "$tmp"