kernel: enumerate internal kexts during boot

This commit is contained in:
2023-04-08 09:27:21 +01:00
parent a1f54fd156
commit 9b75ca8b8c
6 changed files with 151 additions and 4 deletions

View File

@@ -31,6 +31,19 @@ SECTIONS {
*(.data)
}
.rodata ALIGN(4K) : AT(ADDR(.rodata) - KERNEL_VMA)
{
_rodata = .;
*(.rodata*)
}
.kexts ALIGN(4K) : AT(ADDR(.kexts) - KERNEL_VMA)
{
__kexts_start = .;
*(.kextinfo)
__kexts_end = .;
}
.data.percpu ALIGN(4K) : AT(ADDR(.data.percpu) - KERNEL_VMA)
{
__percpu_start = .;