hi,
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?
thx
mblock
ld coff outpurt-format?
Re:ld coff outpurt-format?
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.
Re:ld coff outpurt-format?
wow cool
and how can i do this?
i already downloaded and installed the binutils... what should i do to get coff-support?
thx
mblock
and how can i do this?
i already downloaded and installed the binutils... what should i do to get coff-support?
thx
mblock
Re:ld coff outpurt-format?
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.