tcc-stupidos/win32/lib
herman ten brugge 039e4ec2a4 Call __bound_main_arg at startup
This uses a glibc feature present since constructor/destructor support was added.

Modify tccrun.c to call constructor with argc, argcv, envp.
In lib/bcheck.c use these values to register them in the splay tree.
Remove HAS_ENVIRON is lib/bcheck.c as it is not needed any more.
Modify win32/lib/crt1.c/win32/lib/dllcrt1.c/win32/lib/wincrt1.c to also
call constructor with argc, argcv, envp.
While implementing I saw that tccrun did nog call main with envp. Fixed it.
Also fix fetch_and_add_arm.S to make it work on armv6 (raspberry pi default).
2020-06-22 14:55:27 +02:00
..
chkstk.S some smaller fixes 2019-07-14 22:46:19 +02:00
crt1.c Call __bound_main_arg at startup 2020-06-22 14:55:27 +02:00
crt1w.c win32: adjust new unicode support 2017-02-18 09:51:23 +01:00
dllcrt1.c Call __bound_main_arg at startup 2020-06-22 14:55:27 +02:00
dllmain.c correct a DllMain() declaration in dllcrt1.c and dllmain.c 2015-03-03 22:51:13 +03:00
gdi32.def dos2unix 2005-04-17 13:10:37 +00:00
kernel32.def tccrun/win64: cleanup runtime function table 2016-10-19 19:21:27 +02:00
msvcrt.def Finalizing math.h fixes: 2020-04-11 02:29:51 +02:00
user32.def tcc: re-enable correct option -r support 2017-02-20 18:58:08 +01:00
wincrt1.c Call __bound_main_arg at startup 2020-06-22 14:55:27 +02:00
wincrt1w.c win32: adjust new unicode support 2017-02-18 09:51:23 +01:00
ws2_32.def Add minimal includes and .def files to support, by default, BSD socket programming on Windows. 2019-04-16 07:26:04 +02:00