link: add __kernel_start/__kernel_end symbols

This commit is contained in:
Pierre-Emmanuel Gob. 2026-10-05 18:12:04 +02:00
parent 51b654d5e3
commit 36fa8d7655

View file

@ -17,6 +17,8 @@ SECTIONS
{ {
. = 0x10000; . = 0x10000;
__kernel_start = .;
.boot : { .boot : {
*(.boot32) *(.boot32)
} }
@ -40,6 +42,8 @@ SECTIONS
__bss_end = .; __bss_end = .;
} }
__kernel_end = .;
/DISCARD/ : { /DISCARD/ : {
*(.note*) *(.note*)
*(.comment*) *(.comment*)