We are developing an operating system, but when trying to link out asm output (asm_main.o) with the rest of the project, we get an "File not recognized, format not recognized" from the linker on the nasm output file.... but this does not happen in Linux... gcc files link just fine, anyone knows how we can fix this?
this is out nasm command:
nasm -f aout main.asm -o main_asm.o
...and out linker command:
ld -T link.ld -o ../../build/kernel.bin main_asm.o main_c.o video.o exception.o irq.o pic.o paging.o
"main_asm.o: file not recognized: File format not recognized"
why does this happen? or why doesn't it happen in linux?