banan-os/kernel/arch/x86_64/linker.ld

27 lines
280 B
Plaintext
Raw Normal View History

ENTRY (_start)
SECTIONS
{
. = 0x00100000;
.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)
}
g_kernel_end = .;
}