2023-01-25 19:05:47 +02:00
|
|
|
ENTRY (_start)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0x00100000;
|
|
|
|
|
2023-04-21 10:40:24 +03:00
|
|
|
g_kernel_start = .;
|
2023-01-25 19:05:47 +02:00
|
|
|
.text BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(.multiboot)
|
|
|
|
*(.text)
|
|
|
|
}
|
|
|
|
.rodata BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
2023-03-13 15:32:46 +02:00
|
|
|
*(.rodata.*)
|
2023-01-25 19:05:47 +02:00
|
|
|
}
|
|
|
|
.data BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(.data)
|
|
|
|
}
|
|
|
|
.bss BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(COMMON)
|
|
|
|
*(.bss)
|
|
|
|
}
|
|
|
|
g_kernel_end = .;
|
2023-03-13 15:32:46 +02:00
|
|
|
|
|
|
|
. = 0x00A00000;
|
|
|
|
|
|
|
|
g_userspace_start = .;
|
|
|
|
.userspace BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(.userspace)
|
|
|
|
}
|
|
|
|
g_userspace_end = .;
|
|
|
|
|
2023-01-25 19:05:47 +02:00
|
|
|
}
|