Moved linker options requiring files to pragmas in kernel,nim

This commit is contained in:
neviyn 2017-11-08 13:46:39 +00:00
parent 86760fd9de
commit e27ee760d6
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
{.link: "boot.o".}
{.passL: "-T kernel/arch/i386/linker.ld".}
import tty, gdt, irq, serial
proc kernelMain() {.exportc: "kernel_main"}=

View File

@ -6,5 +6,5 @@
--cpu:i386
--os:standalone
--passC:"-ffreestanding -nostdlib --target=i386-pc-none-elf -march=i386"
--passL:"-ffreestanding -target i386 -nostdlib -T ./kernel/arch/i386/linker.ld boot.o"
--passL:"-ffreestanding -target i386 -nostdlib"
--out:"myos.bin"