keyb.asm - compiles but then shwos up as unrec...
Here's my problem. I can compile the .asm file (keyb.asm) fine without errors (using nasm -f coff keyb.asm -o keyb.o), but then when I use it in the linker (using ld ...) itworks fine until it hits that file and gives me this error:
root@1[OS]# gcc -Wl,--section-start,.text=0x0 -ffreestanding -nostdlib main.c video.c ports.c ints.c keyb.o -o kernel.elf
keyb.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Any ideas? Thanks in advance.
NOTE:
I've also tried this way and got the same error message:
root@1[OS]# ld -e _start -Ttext 0x0 -o kernel.o main.o video.o ports.o keyb.o ints.o
keyb.o: file not recognized: File format not recognized
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement