IndigoOS/src/link.ld
Brett Weiland 774e3796b2 modified: src/bootloader/bios_functions/bios_disk.asm
modified:   src/bootloader/bootloader.asm
	new file:   src/include/kernel.h
	modified:   src/include/libc.h
	modified:   src/include/paging.h
	new file:   src/include/panic.h
	modified:   src/kernel/kernel.c
	modified:   src/kernel/libc.c
	modified:   src/kernel/page.c
	new file:   src/kernel/panic.c
	modified:   src/link.ld
	modified:   src/makefile
	modified:   tools/page/page.py
2021-04-18 16:00:17 -05:00

39 lines
682 B
Plaintext

SEARCH_DIR(objects)
INPUT(
bootloader.o
libc.o
serial.o
video.o
printf.o
page.o
acpi.o
kernel.o
panic.o
)
_kernel_stack_loc = 0x200000 - 8;
_kernel_loc = 0x100000;
_meminfo_loc = 0x7000;
_vbe_infoblock = 0x500;
_stage2_pagetable = 0x200000;
_stage1_pagetable = 0x4000;
SECTIONS
{
. = 0x0;
bootloader 0x7c00 :
{
bootloader.o(.text)
}
kernel _kernel_loc :
AT (ADDR(bootloader) + SIZEOF(bootloader))
/*ALIGN(4096)*/
{
EXCLUDE_FILE (*bootloader.o) *(.text .data .bss .rodata .comment .eh_frame)
}
}
_kernel_size = ((SIZEOF(kernel) / 512) + (SIZEOF(bootloader) / 512)); /* there's a bug here I think!*/
_bootloader_stage1_size = (SIZEOF(bootloader) / 512);