Jump to content
  • Advertisement
Sign in to follow this  
sathenzar

keyb.asm - compiles but then shwos up as unrec...

This topic is 4603 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!