Added new linker symbol pointing to end of read-only data

This commit is contained in:
2023-03-03 04:52:58 -06:00
parent f66810d6ad
commit 035960f4d3
2 changed files with 2 additions and 0 deletions

1
src/x86/linker.ld Executable file → Normal file
View File

@@ -37,6 +37,7 @@ SECTIONS
_kernel_pstart = PHYSICAL_BASE;
_kernel_pend = PHYSICAL_BASE + (4096 * IMAGE_SIZE);
_kernel_start = VIRTUAL_BASE;
_kernel_tend = VIRTUAL_BASE + SIZEOF(.text) + SIZEOF(.rodata);
_kernel_end = VIRTUAL_BASE + (4096 * IMAGE_SIZE);
_entry_paddr = _start - _kernel_start + _kernel_pstart;
}