2019-04-01 22:43:07 +03:00
|
|
|
ENTRY(start)
|
2018-10-16 12:01:38 +03:00
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2020-01-17 21:59:20 +03:00
|
|
|
. = 0xc0100000;
|
2018-10-16 12:01:38 +03:00
|
|
|
|
2020-01-17 21:59:20 +03:00
|
|
|
start_of_kernel_image = .;
|
|
|
|
|
|
|
|
.text ALIGN(4K) : AT (ADDR(.text) - 0xc0000000)
|
2020-01-16 11:46:09 +03:00
|
|
|
{
|
2020-05-06 18:40:06 +03:00
|
|
|
$<TARGET_OBJECTS:boot>
|
2020-01-16 11:46:09 +03:00
|
|
|
*(.multiboot)
|
2020-01-06 15:53:30 +03:00
|
|
|
start_of_kernel_text = .;
|
2020-01-16 11:46:09 +03:00
|
|
|
*(.text)
|
|
|
|
*(.text.startup)
|
2020-12-20 04:48:56 +03:00
|
|
|
|
|
|
|
start_of_safemem_text = .;
|
|
|
|
*(.text.safemem)
|
|
|
|
end_of_safemem_text = .;
|
|
|
|
start_of_safemem_atomic_text = .;
|
|
|
|
*(.text.safemem.atomic)
|
|
|
|
end_of_safemem_atomic_text = .;
|
|
|
|
|
2020-01-06 15:53:30 +03:00
|
|
|
end_of_kernel_text = .;
|
2020-01-16 11:46:09 +03:00
|
|
|
}
|
2018-10-16 12:01:38 +03:00
|
|
|
|
2020-01-17 21:59:20 +03:00
|
|
|
.rodata ALIGN(4K) : AT (ADDR(.rodata) - 0xc0000000)
|
2020-01-16 11:46:09 +03:00
|
|
|
{
|
2020-08-10 18:44:35 +03:00
|
|
|
start_heap_ctors = .;
|
|
|
|
*libkernel_heap.a:*(.ctors)
|
|
|
|
end_heap_ctors = .;
|
|
|
|
|
2020-01-16 11:46:09 +03:00
|
|
|
start_ctors = .;
|
|
|
|
*(.ctors)
|
|
|
|
end_ctors = .;
|
2019-10-31 21:01:13 +03:00
|
|
|
|
2020-01-16 11:46:09 +03:00
|
|
|
*(.rodata)
|
|
|
|
}
|
2018-10-16 12:01:38 +03:00
|
|
|
|
2020-01-17 21:59:20 +03:00
|
|
|
.data ALIGN(4K) : AT (ADDR(.data) - 0xc0000000)
|
2020-01-16 11:46:09 +03:00
|
|
|
{
|
2020-01-06 15:53:30 +03:00
|
|
|
start_of_kernel_data = .;
|
2020-01-16 11:46:09 +03:00
|
|
|
*(.data)
|
2020-01-06 15:53:30 +03:00
|
|
|
end_of_kernel_data = .;
|
2020-01-16 11:46:09 +03:00
|
|
|
}
|
2018-10-16 12:01:38 +03:00
|
|
|
|
2021-01-20 19:49:55 +03:00
|
|
|
.bss ALIGN(4K) (NOLOAD) : AT (ADDR(.bss) - 0xc0000000)
|
2020-01-16 11:46:09 +03:00
|
|
|
{
|
2020-01-06 15:53:30 +03:00
|
|
|
start_of_kernel_bss = .;
|
2020-01-17 21:59:20 +03:00
|
|
|
*(page_tables)
|
2020-01-16 11:46:09 +03:00
|
|
|
*(COMMON)
|
|
|
|
*(.bss)
|
2020-01-06 15:53:30 +03:00
|
|
|
end_of_kernel_bss = .;
|
2021-01-20 19:49:55 +03:00
|
|
|
|
|
|
|
. = ALIGN(4K);
|
|
|
|
*(.heap)
|
|
|
|
. = ALIGN(4K);
|
|
|
|
*(.super_pages)
|
2020-01-16 11:46:09 +03:00
|
|
|
}
|
2020-01-17 21:59:20 +03:00
|
|
|
|
|
|
|
end_of_kernel_image = .;
|
2018-10-16 12:01:38 +03:00
|
|
|
}
|