luxos/SysCore/objects/link.ld
2021-09-14 18:34:14 +03:00

50 lines
776 B
Plaintext

OUTPUT_FORMAT("binary")
ENTRY(start)
INPUT("loader.o",
"main.o",
"BSOD.o",
"cmos.o",
"conio.o",
"cpu.o",
"gdt.o",
"gdt_asm.o",
"hal.o",
"idt.o",
"idt_asm.o",
"irq.o",
"irq_asm.o",
"isrs.o",
"isrs_asm.o",
"mmngr_cr.o",
"mmngr_ph.o",
"keyus.o",
"pic.o",
"pit.o",
"string.o",
"system.o",
"time.o"
)
OUTPUT(kernel.bin)
phys = 0x00100000;
SECTIONS
{
.text phys : AT(phys) {
__code = .;
*(.text)
*(.rodata)
. = ALIGN(4096);
}
.data : AT(phys + (__data - __code))
{
__data = .;
*(.data)
. = ALIGN(4096);
}
.bss : AT(phys + (__bss - __code))
{
__bss = .;
*(.bss)
. = ALIGN(4096);
}
__end = .;
}