mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
Kernel: Split debug symbols into a separate file
This speeds up the boot process considerably when specifying the kernel image via -initrd.
This commit is contained in:
parent
b708b23b13
commit
98f8ecd9d2
6 changed files with 10 additions and 5 deletions
|
@ -201,7 +201,7 @@ Result<NonnullOwnPtr<Profile>, String> Profile::load_from_perfcore_file(const St
|
|||
|
||||
auto& object = json.value().as_object();
|
||||
|
||||
auto file_or_error = MappedFile::map("/boot/Kernel");
|
||||
auto file_or_error = MappedFile::map("/boot/Kernel.debug");
|
||||
OwnPtr<ELF::Image> kernel_elf;
|
||||
if (!file_or_error.is_error())
|
||||
kernel_elf = make<ELF::Image>(file_or_error.value()->bytes());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue