--- test-gui.c ---
int _winstart(void)
{
return 0;
}
--------------------------------------------------------
With this patch it's possible to use _winstart without runtime libraries:
tcc.exe test-gui.c -nostdlib
--------------------------------------------------------
--- a\tccpe.c Thu Jan 14 22:00:04 2010
+++ b\tccpe.c Wed Mar 10 19:29:23 2010
@@ -1730,7 +1730,8 @@
unsigned long addr = 0;
int pe_type = 0;
- if (find_elf_sym(symtab_section, PE_STDSYM("WinMain","@16")))
+ if (find_elf_sym(symtab_section, PE_STDSYM("WinMain","@16"))
+ || find_elf_sym(symtab_section, "_winstart"))
pe_type = PE_GUI;
else
if (TCC_OUTPUT_DLL == s1->output_type) {
--------------------------------------------------------
_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel