mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-19 11:24:19 +08:00
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). |
||
|---|---|---|
| .. | ||
| alloca86_64-bt.S | ||
| alloca86_64.S | ||
| alloca86-bt.S | ||
| alloca86.S | ||
| alloca-arm.S | ||
| armeabi.c | ||
| armflush.c | ||
| bcheck.c | ||
| bt-dll.c | ||
| bt-exe.c | ||
| bt-log.c | ||
| dsohandle.c | ||
| fetch_and_add_arm64.S | ||
| fetch_and_add_arm.S | ||
| fetch_and_add_riscv64.S | ||
| lib-arm64.c | ||
| libtcc1.c | ||
| Makefile | ||
| va_list.c | ||