mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +00:00
Kernel: Add some mission sections to the aarch64 linker script
The sections did end up in the ELF file, however they weren't explicitely mentioned in the linker.ld script. In the future, we can add the --orphan-handling=error flag to the linker options, which will enforce that the sections used in the sources files also are mentioned in the linker script.
This commit is contained in:
parent
80048c694a
commit
a1b352fdc0
1 changed files with 15 additions and 1 deletions
|
@ -1,11 +1,13 @@
|
|||
ENTRY(start)
|
||||
|
||||
/* TODO: Add FLAGS to the program headers */
|
||||
PHDRS
|
||||
{
|
||||
text PT_LOAD ;
|
||||
data PT_LOAD ;
|
||||
bss PT_LOAD ;
|
||||
ksyms PT_LOAD FLAGS(PF_R) ;
|
||||
super_pages PT_LOAD ;
|
||||
ksyms PT_LOAD ;
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
|
@ -20,6 +22,10 @@ SECTIONS
|
|||
|
||||
.rodata ALIGN(4K) : AT (ADDR(.rodata))
|
||||
{
|
||||
start_ctors = .;
|
||||
*(.init_array)
|
||||
end_ctors = .;
|
||||
|
||||
*(.rodata*)
|
||||
} :data
|
||||
|
||||
|
@ -33,8 +39,16 @@ SECTIONS
|
|||
start_of_bss = .;
|
||||
*(.bss)
|
||||
end_of_bss = .;
|
||||
|
||||
. = ALIGN(4K);
|
||||
*(.heap)
|
||||
} :bss
|
||||
|
||||
.super_pages ALIGN(4K) (NOLOAD) : AT (ADDR(.super_pages))
|
||||
{
|
||||
*(.super_pages)
|
||||
} :super_pages
|
||||
|
||||
.ksyms ALIGN(4K) : AT (ADDR(.ksyms))
|
||||
{
|
||||
start_of_kernel_ksyms = .;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue