bootloader
Posted: Thu Nov 11, 2010 5:22 am
Hi
This post is regarding
"How to use C in a boot loader " in the post http://www.brokenthorn.com/Resources/OSDev0.html.
It is said in the first part that we can have C code along with a stub of assembly in a single file.
But my question is, when the above C code (in the single file along with the stub of assembly) is compiled it will generate object code in elf format (gcc), but we want a flat binary file for bootloader.
In that case how our objective is fullfilled.
Can the author throw more light on this?
I have seen a bootloader (from utexas cs395t course) with two files one an assembly file and other a C file. The assembly file starts and calls the C code. I am not understanding how one get flat binary in this case while compiling the above two files(in linux gcc environment).
This post is regarding
"How to use C in a boot loader " in the post http://www.brokenthorn.com/Resources/OSDev0.html.
It is said in the first part that we can have C code along with a stub of assembly in a single file.
But my question is, when the above C code (in the single file along with the stub of assembly) is compiled it will generate object code in elf format (gcc), but we want a flat binary file for bootloader.
In that case how our objective is fullfilled.
Can the author throw more light on this?
I have seen a bootloader (from utexas cs395t course) with two files one an assembly file and other a C file. The assembly file starts and calls the C code. I am not understanding how one get flat binary in this case while compiling the above two files(in linux gcc environment).