mirror of
https://github.com/tailix/kernel.git
synced 2024-12-04 11:34:42 -05:00
36 lines
512 B
Text
36 lines
512 B
Text
OUTPUT_ARCH("i386")
|
|
ENTRY(_start)
|
|
|
|
_kernel_offset = 0xC0000000; /* 3 GB */
|
|
|
|
_kernel_phys_base = 4M;
|
|
_kernel_virt_base = (_kernel_phys_base + _kernel_offset);
|
|
|
|
SECTIONS
|
|
{
|
|
. = _kernel_phys_base;
|
|
|
|
.text BLOCK(4K) : ALIGN(4K)
|
|
{
|
|
*(.multiboot)
|
|
*(.text)
|
|
}
|
|
|
|
.rodata BLOCK(4K) : ALIGN(4K)
|
|
{
|
|
*(.rodata)
|
|
}
|
|
|
|
.data BLOCK(4K) : ALIGN(4K)
|
|
{
|
|
*(.data)
|
|
}
|
|
|
|
.bss BLOCK(4K) : ALIGN(4K)
|
|
{
|
|
*(COMMON)
|
|
*(.bss)
|
|
}
|
|
|
|
_kernel_size = .;
|
|
}
|