Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
i want to write a module loader. i want to use the common object file format for my kernel modules.... but how can i create them? i can directly assemble a assembler program with nasm using coff as output-format but i want to program my modules in c
is there a ld-version which supports the coff-format? or do you know another good linker?
ld can be build to support just about every target architecture and file format. Whether or not your readily available ld supports COFF, or whether you have to build a custom one, depends on your build platform.
Every good solution is obvious once you've found it.
Most simply by building a cross-compiler environment (highly recommended for OS development work anyway) and specifying a COFF target instead of the ELF target as written in the tutorial I just linked. That will not only give you a COFF ld, but a COFF as and COFF GCC, as well.
Every good solution is obvious once you've found it.