try switch --gcc.linkerexe
Hey @dom96, why not try --gcc.linkerexe, through this you might not need to list all *.o files passed to the compiler for linking, which means when you add some new modules, you can just run and there is no need to figure out all the compiled result just like writing a Makefile when using C. :-)

Actually, I have just written a kernel on riscv, which is highly inspired by your awesome proj. Thanks a lot :P

Below is the compile flags of my little kernel when building:

https://github.com/sslime336/nimkernel-riscv/blob/master/nakefile.nim#L69-L70