mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
ed4bfaed12
Now that we have separated the kmalloc.cpp constructors into a separate library, we can actually call the constructors in the init function.
88 lines
1.7 KiB
Plaintext
88 lines
1.7 KiB
Plaintext
ENTRY(start)
|
|
|
|
/* TODO: Add FLAGS to the program headers */
|
|
PHDRS
|
|
{
|
|
text PT_LOAD ;
|
|
data PT_LOAD ;
|
|
ksyms PT_LOAD ;
|
|
bss PT_LOAD ;
|
|
super_pages PT_LOAD ;
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
. = 0x00080000;
|
|
|
|
.text ALIGN(4K) : AT (ADDR(.text))
|
|
{
|
|
*(.text.first)
|
|
*(.text*)
|
|
} :text
|
|
|
|
.rodata ALIGN(4K) : AT (ADDR(.rodata))
|
|
{
|
|
start_heap_ctors = .;
|
|
*libkernel_heap.a:*(.init_array)
|
|
end_heap_ctors = .;
|
|
|
|
start_ctors = .;
|
|
*(.init_array)
|
|
end_ctors = .;
|
|
|
|
*(.rodata*)
|
|
} :data
|
|
|
|
.data ALIGN(4K) : AT (ADDR(.data))
|
|
{
|
|
*(.data*)
|
|
} :data
|
|
|
|
.ksyms ALIGN(4K) : AT (ADDR(.ksyms))
|
|
{
|
|
start_of_kernel_ksyms = .;
|
|
*(.kernel_symbols)
|
|
end_of_kernel_ksyms = .;
|
|
} :ksyms
|
|
|
|
.bss ALIGN(4K) (NOLOAD) : AT (ADDR(.bss))
|
|
{
|
|
start_of_bss = .;
|
|
*(.bss)
|
|
end_of_bss = .;
|
|
|
|
. = ALIGN(4K);
|
|
*(.heap)
|
|
} :bss
|
|
|
|
.super_pages ALIGN(4K) (NOLOAD) : AT (ADDR(.super_pages))
|
|
{
|
|
*(.super_pages)
|
|
} :super_pages
|
|
|
|
/*
|
|
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_text = .;
|
|
end_of_kernel_text = .;
|
|
start_of_kernel_image = .;
|
|
end_of_kernel_image = .;
|
|
start_of_unmap_after_init = .;
|
|
end_of_unmap_after_init = .;
|
|
start_of_ro_after_init = .;
|
|
end_of_ro_after_init = .;
|
|
start_of_kernel_data = .;
|
|
end_of_kernel_data = .;
|
|
|
|
. = ALIGN(4K);
|
|
page_tables_phys_start = .;
|
|
|
|
. += 8M;
|
|
page_tables_phys_end = .;
|
|
}
|
|
|
|
size_of_bss_divided_by_8 = (end_of_bss - start_of_bss) / 8;
|