diff options
author | Timon Kruiper <timonkruiper@gmail.com> | 2022-05-02 23:04:10 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-05-03 21:53:36 +0200 |
commit | 0d6d4508dffa763edf2a8bef4195c003b28308e4 (patch) | |
tree | 2bb18f792834983da68b48293f14ba05336e15b7 /Kernel | |
parent | 9f76b1612439d816e55a722df7a3a62f4718895d (diff) | |
download | serenity-0d6d4508dffa763edf2a8bef4195c003b28308e4.zip |
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.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Arch/aarch64/linker.ld | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Kernel/Arch/aarch64/linker.ld b/Kernel/Arch/aarch64/linker.ld index 6407869d9d..5a78882ca9 100644 --- a/Kernel/Arch/aarch64/linker.ld +++ b/Kernel/Arch/aarch64/linker.ld @@ -5,6 +5,7 @@ PHDRS text PT_LOAD ; data PT_LOAD ; bss PT_LOAD ; + ksyms PT_LOAD FLAGS(PF_R) ; } SECTIONS @@ -34,14 +35,19 @@ SECTIONS end_of_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 physical memory. 8M is wasteful, so this should be properly calculated. */ /* FIXME: Placeholder to satisfy linker */ - start_of_kernel_ksyms = .; - end_of_kernel_ksyms = .; start_of_kernel_text = .; end_of_kernel_text = .; start_of_kernel_image = .; |