2017-11-03 22:22:09 -04:00
|
|
|
OUTPUT_ARCH("i386")
|
2017-11-01 00:43:42 -04:00
|
|
|
ENTRY(_start)
|
|
|
|
|
2017-11-04 06:19:53 -04:00
|
|
|
_kernel_offset = 0xC0000000; /* 3 GB */
|
2017-11-03 23:31:13 -04:00
|
|
|
|
2017-11-04 06:19:53 -04:00
|
|
|
_kernel_phys_base = 4M;
|
|
|
|
_kernel_virt_base = (_kernel_phys_base + _kernel_offset);
|
2017-11-03 23:31:13 -04:00
|
|
|
|
2017-11-01 00:43:42 -04:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 1M;
|
|
|
|
|
|
|
|
.text BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
2017-11-01 09:23:42 -04:00
|
|
|
*(.multiboot)
|
2017-11-01 00:43:42 -04:00
|
|
|
*(.text)
|
|
|
|
}
|
|
|
|
|
|
|
|
.rodata BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(.rodata)
|
|
|
|
}
|
|
|
|
|
|
|
|
.data BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(.data)
|
|
|
|
}
|
|
|
|
|
|
|
|
.bss BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(COMMON)
|
|
|
|
*(.bss)
|
|
|
|
}
|
|
|
|
}
|