Seems that 'ld --target-help' accuses me of asking a RFTM question :-)
The essential answer seems to be '--subsystem "native"' and
'-e <entry_point>' , though according to some sources the entry point
name is arbitrary and you only need to observe the prototype...
Plus, some of the following GCC options may be needed:
-nostartfiles
-nodefaultlibs
-nostdlib (then add -lgcc explicitly)
-ffreestanding
And maybe some of the other PE/COFF-specific options to ld...
Still, any further information is welcome, reinventing the wheel is a
pain :-)
Frank Rysanek
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.