kmod: prepare for kernel module loading

This commit is contained in:
RaphProductions 2025-05-17 11:51:28 +02:00
parent 30017592ad
commit d017412af5
3 changed files with 31 additions and 4 deletions

View file

@ -57,6 +57,11 @@ SECTIONS
.data : {
data_start_ld = .;
*(.data .data.*)
/* Exported kernel symbols */
__start_ksyms = .;
KEEP(*(.ksyms))
__stop_ksyms = .;
} :data
/* NOTE: .bss needs to be the last thing mapped to :data, otherwise lots of */