finix/kernel/arch/i686/linker.ld
2023-07-17 19:34:52 -04:00

38 lines
522 B
Text

ENTRY(start)
SECTIONS {
. = 0x00100000;
kernel_start = .;
.bootstrap : {
*(.bootstrap.data)
*(.bootstrap.stack)
*(.bootstrap.text)
}
. += 0xC0000000;
.text ALIGN (4K) : AT (ADDR (.text) - 0xC0000000)
{
*(.text)
}
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC0000000)
{
*(.rodata)
}
.data ALIGN (4K) : AT (ADDR (.data) - 0xC0000000)
{
*(.data)
}
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC0000000)
{
*(COMMON)
*(.bss)
*(.stack)
}
kernel_end = .;
}