Removing PE+ Headers
Is it possible to remove PE+(x64/Win64) headers from executables to get flat binary 64-bit code? I want to use Masm to code a 64-bit kernel, because it's syntax is simpler than a lot of other assemblers, and because I want to use Visual Studio 2010 with microsoft's compiler so if there's a way to remove PE+ headers I'll have to do that right? As far as I know, Visual Studio will only compile for Windows, right? I wasn't sure which section to post this in, but I'll be writing more C/C++ than Assembly so I figured this would work. Also, what's a good 64-bit Assembler that can output flat binary if I can't use Masm, and should I be using CodeBlocks instead of VS2010?