Is it possible to get the linker that comes with the WDK to output a flat
executable (instead of PE_COFF)?
I want to develop a bootloader for my hobby operating system. Right now, I
am booting my (PE_COFF) kernel with grub, but I wish to develop my own
bootloader. Grub does not understand PE_COFF, but it is multiboot compliant.
By carefully crafting a PE file, I can tell grub, with the aid of the
multiboot support, where to load stuff from it. This is very fragile, plus
I'd want my own bootloader anyway. The problem is that the build tools in
the WDK only generate PE_COFF files, while the bootloader needs to be a flat
binary for it to load directly into memory.
If I can't use the C compilers to get a flat file, I can write it in
assembly without any problem, but I still need linker support (which I think
it is lacking).
I could use gas (GNU) or some other tools, but what I am really trying to do
is to use the WDK build environment for everything. I don't want to mix and
maintain 2 build environments. How does the Windows team build it's
setenv.bat from the WDK has a HAL environment option. Is that of any use to
Thanks in advance for any suggestions.