Files
blankos/link.ld
2024-09-14 20:08:30 +02:00

32 lines
363 B
Plaintext

ENTRY(loader)
SECTIONS {
/* Address to load at; 2MB */
. = 2M;
.multiboot_header ALIGN(4K) : {
*(.multiboot_header)
}
/* Align relevant sections at 4KB */
.text ALIGN (4K) :
{
*(.text)
*(.rodata)
}
.data ALIGN (4K) :
{
*(.data)
}
.bss ALIGN (4K) :
{
*(COMMON)
*(.bss)
}
end = .; _end = .; __end = .;
}