I am trying to boot a floppy image on Bochs (x86 emulator). I have made a small program in assembly where i use the bios video services (0x10) to write a character to the screen. I compiled this program using gcc.
I am going to write it to the boot sector of the floppy image.
Can anybody tell me how to get a pure binary image from the elf file gcc has produced. I guess i have to use objcopy. But I am not sure. Can anybody help?