Love4Boobies wrote:Why are you assuming he's using a compiler?
I just reflexively assumed he was, as it makes sense to me that anybody using assembly (i.e., binutils only or binutils + nasm or some other assembler) would know what they are doing.
I didn't necessarily mean he was interested in GAS either. Maybe he just has the object files and wished to link them. After all, we're in the Everything Else forum.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Exactly, you can use objcopy to create a binary format other than PE (when you use it, you can leave your linker script without binary type information).
Another is about the name of functions and variables, which adds a MinGW "_" before the name of each function. If you do not want that "junk" in your kernel code (and also make your code more compatible with a possible build in Linux), just pass the parameter "-fno-underscore" for GCC.
And you'll end up adding options and more options until you covered all hidden "features" of mingw that will pop up over time, until you find that that particular compiler is inherently broken to do your work.
The cross-compiler is the recommended solution for a reason.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]