summaryrefslogtreecommitdiff
path: root/Kernel/embedmap.sh
blob: 58e33e8a1fa479b9cfd9019248ebd4a0299d7fd3 (plain)
1
2
3
4
5
6
#!/bin/sh
tmp=$(mktemp)
(cat kernel.map; printf '%b' '\0') > "$tmp"
OBJCOPY="${OBJCOPY:-objcopy}"
"$OBJCOPY" --update-section .ksyms="$tmp" Kernel
rm -f "$tmp"