Hi, I'm starting this link for us to share solutions to common problems we encounter in Os dev.
I use Djgpp and Nasm for my development and have been trying for months to create a library file containing all the files I use in the kernel so that i could supply a single lib file to LD during linking instead of a long list of files!
In Nasm, i was compiling the asm files to AOUT format and in Djgpp the C files to COFF format.
The problem, which the DOCs for Djgpp failed to mention, is that AOUT AND COFF files should NOT be in the same library file!!! LD can't Handle such a library file
so if you have aout files and coff files, create seperate library files for them using AR as normal, one containing the AOUT files and the other the COFF file
Do not mix file formats in the same library file under AR,LD and co