mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +00:00
Kernel: Add the .ksyms section to the aarch64 Kernel binary
Previously the embedmap.sh script generated a warning, since there was no section defined where the actual kernel.map could be stored. This is necesarry for generating kernel backtraces.
This commit is contained in:
parent
9f76b16124
commit
0d6d4508df
1 changed files with 8 additions and 2 deletions
|
@ -5,6 +5,7 @@ PHDRS
|
||||||
text PT_LOAD ;
|
text PT_LOAD ;
|
||||||
data PT_LOAD ;
|
data PT_LOAD ;
|
||||||
bss PT_LOAD ;
|
bss PT_LOAD ;
|
||||||
|
ksyms PT_LOAD FLAGS(PF_R) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
|
@ -34,14 +35,19 @@ SECTIONS
|
||||||
end_of_bss = .;
|
end_of_bss = .;
|
||||||
} :bss
|
} :bss
|
||||||
|
|
||||||
|
.ksyms ALIGN(4K) : AT (ADDR(.ksyms))
|
||||||
|
{
|
||||||
|
start_of_kernel_ksyms = .;
|
||||||
|
*(.kernel_symbols)
|
||||||
|
end_of_kernel_ksyms = .;
|
||||||
|
} :ksyms
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FIXME: 8MB is enough space for all of the tables required to identity map
|
FIXME: 8MB is enough space for all of the tables required to identity map
|
||||||
physical memory. 8M is wasteful, so this should be properly calculated.
|
physical memory. 8M is wasteful, so this should be properly calculated.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* FIXME: Placeholder to satisfy linker */
|
/* FIXME: Placeholder to satisfy linker */
|
||||||
start_of_kernel_ksyms = .;
|
|
||||||
end_of_kernel_ksyms = .;
|
|
||||||
start_of_kernel_text = .;
|
start_of_kernel_text = .;
|
||||||
end_of_kernel_text = .;
|
end_of_kernel_text = .;
|
||||||
start_of_kernel_image = .;
|
start_of_kernel_image = .;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue