Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
but now that I am using long mode, is there a way for me to link files without having to use the elf format and just use a flat setup like before? basically, I just want to be able to launch from my bootloader which sets up long mode and jump directly to the beginning of the kernel binary and start executing instructions.
Last edited by 01000101 on Thu Jul 31, 2008 2:46 pm, edited 1 time in total.
Removing the -m32 option makes your compiler use your computer's set, IE: if you have a x86_64 compiler your compiler will compile your executable into the x86_64 format.
If you're compiling on a 32bit machine I think you have to use the -m64 option or a variation thereof
I know, what I'm saying is, that with the -m64 option, I cannot link the O files into a flat binary, it requires it be linked in 'elf' format which I don't want.