Moved linker options requiring files to pragmas in kernel,nim
This commit is contained in:
parent
86760fd9de
commit
e27ee760d6
@ -1,3 +1,6 @@
|
|||||||
|
{.link: "boot.o".}
|
||||||
|
{.passL: "-T kernel/arch/i386/linker.ld".}
|
||||||
|
|
||||||
import tty, gdt, irq, serial
|
import tty, gdt, irq, serial
|
||||||
|
|
||||||
proc kernelMain() {.exportc: "kernel_main"}=
|
proc kernelMain() {.exportc: "kernel_main"}=
|
||||||
|
2
nim.cfg
2
nim.cfg
@ -6,5 +6,5 @@
|
|||||||
--cpu:i386
|
--cpu:i386
|
||||||
--os:standalone
|
--os:standalone
|
||||||
--passC:"-ffreestanding -nostdlib --target=i386-pc-none-elf -march=i386"
|
--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"
|
--out:"myos.bin"
|
||||||
|
Loading…
Reference in New Issue
Block a user