c - loader.o file not recognized: File format not recognized -



c - loader.o file not recognized: File format not recognized -

i trying build super simple operating system. using tutorial here, problem popped. in web, couldn't see might help. compiled main.c , video.c .o files, worked when compiling. assembled code in nasm, using:

nasm -f aout loader.asm -o loader.o asm file content:

; loader.asm bits 32 extern main global start start: phone call main ; phone call our kernel's main() function cli ; stop interrupts (thats article?) hlt ; stop instructions then, when liked everything, error went off: $ ld -ttext 0x1000 -o kernel.bin loader.bin main.o video.o loader.bin: file not recognized: file format not recognized in advance, itay.

p.s. "source" think bit crazy...

c linux gcc assembly nasm

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -