Ok, I think I've found the problem. ntoskrnl.exe imported from msvcrt.dll... Patch below seems to fix things for me, I need to do a DBG := 1 testbuild before I commit.
Gé van Geldorp.
Index: ntoskrnl/ntoskrnl.xml =================================================================== --- ntoskrnl/ntoskrnl.xml (revision 15747) +++ ntoskrnl/ntoskrnl.xml (working copy) @@ -346,4 +346,7 @@ <file>token.c</file> </directory> <file>ntoskrnl.rc</file> + <linkerflag>-nostartfiles</linkerflag> + <linkerflag>-nostdlib</linkerflag> + <linkerflag>-lgcc</linkerflag> </module> Index: lib/kjs/kjs.xml =================================================================== --- lib/kjs/kjs.xml (revision 15747) +++ lib/kjs/kjs.xml (working copy) @@ -2,6 +2,7 @@ <include base="kjs">.</include> <include base="kjs">src</include> <include base="kjs">include</include> + <define name="__NO_CTYPE_INLINES" /> <directory name="ksrc"> <file>setjmp.S</file> <file>longjmp.S</file>