aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorMichal Meloun <mmel@FreeBSD.org>2024-11-03 12:15:33 +0000
committerMichal Meloun <mmel@FreeBSD.org>2024-11-09 07:15:23 +0000
commitba045ba49dedb068ba2f0e13fbb1c1a91fde8333 (patch)
tree6289f05d837945dd1a824d5efa754f371effd2b5 /sys/modules
parentbab5e3d468305928e9e5cf1ca9efcee4c89f6a76 (diff)
arm: Improve the creation of kernel.bin
Instead of relinking the kernel without elf headers, replace them with a binary blob of the same length starting with a jump to the kernel's start address. This ensures that all symbols stay at the same offsets as in the original kernel, so kernel.debug remains valid also for kernel.bin. Also ensure that the awk script used runs with the neutral locale defined. Awk 'write' is a locale compilant, and script is used to write binary data to a file, so it needs to ensure that bytes > 127 are written unchanged. While I'm on, set the neutral locale also for arm64, where the same script is used to generate the kernel booti image. Reviewed by: emaste, imp Differential Revision: https://reviews.freebsd.org/D47488
Diffstat (limited to 'sys/modules')
0 files changed, 0 insertions, 0 deletions