61 lines
1.1 KiB
Plaintext
61 lines
1.1 KiB
Plaintext
OUTPUT_FORMAT("binary")
|
|
ENTRY(start)
|
|
INPUT(
|
|
"loader.o",
|
|
"main.o",
|
|
"mmngr-asm.o",
|
|
"mmngr-phys.o",
|
|
"mmngr-virt.o",
|
|
"mmngr-pde.o",
|
|
"mmngr-pte.o",
|
|
"shell.o",
|
|
"lib-conio.o",
|
|
"lib-ctype.o",
|
|
"lib-stdlib.o",
|
|
"lib-string.o",
|
|
"lib-system.o",
|
|
"lib-time.o",
|
|
"driver-bsod.o",
|
|
"driver-cpu.o",
|
|
"driver-dma.o",
|
|
"driver-drivers.o",
|
|
"driver-floppy.o",
|
|
"driver-gdt.o",
|
|
"driver-gdt-asm.o",
|
|
"driver-idt.o",
|
|
"driver-idt-asm.o",
|
|
"driver-irq.o",
|
|
"driver-irq-asm.o",
|
|
"driver-isrs.o",
|
|
"driver-isrs-asm.o",
|
|
"driver-keyboard.o",
|
|
"driver-fat.o",
|
|
"driver-pic.o",
|
|
"driver-pit.o",
|
|
"video-VGA03H.O"
|
|
)
|
|
OUTPUT(kernel.bin)
|
|
phys = 0xC0000000;
|
|
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 = .;
|
|
}
|