Code: Select all
nasm -f aout -o start.o start.asm
Code: Select all
nasm -f aout -o start.o start.asm
Code: Select all
start.o: file not recognized: File format not recognized
Code: Select all
OUTPUT_FORMAT_("elf32-i386")
Thanks
Thanks
Code: Select all
nasm -f aout -o start.o start.asm
Code: Select all
nasm -f aout -o start.o start.asm
Code: Select all
start.o: file not recognized: File format not recognized
Code: Select all
OUTPUT_FORMAT_("elf32-i386")
Code: Select all
c:/djgpp/bin/ld.exe: target elf32-i386 not found
Code: Select all
OUTPUT_FORMAT(elf32-i386)
Did I miss the part where you changed it?Candamir wrote: I'm now switching from a flat binary kernel to an elf kernel, however, I changed my nasm commands from:toCode: Select all
nasm -f aout -o start.o start.asm
Code: Select all
nasm -f aout -o start.o start.asm
Code: Select all
...
checking for C compiler default output file name... a.exe
checking whether C compiler works... make.exe *** [configure-libiberty] Error 1
Code: Select all
ld -T link.lds $(OBJS) -o kernel.tmp
objcopy -O elf32-i386 kernel.tmp kernel.elf
$(RM) kernel.tmp
No, but it makes many things easier and answered dozens of repetitive questions in the past, which is why it is recommended practice. Besides, it is the first step towards a native toolchain (again, as described on that FAQ page), which is what you are aiming for unless you want to be stuck with cross-compiling forever.rootel77 wrote: there is no need for a cross compiler in cygwin to produce an elf executable.