List Info

Thread: can I tell gcc/ld in Mingw/Win32 to generate a WinNT .SYS (driver) file?




can I tell gcc/ld in Mingw/Win32 to generate a WinNT .SYS (driver) file?
user name
2006-05-25 07:39:50
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

_______________________________________________
help-gnu-utils mailing list
help-gnu-utilsgnu.org

http://lists.gnu.org/mailman/listinfo/help-gnu-utils
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )