tinycc/win32/lib
gr ef42295fe8 tccrun.c: standalone backtraces with -bt[N] or -b
This makes it possible to get backtraces with executables
(including DLLs/SOs) like we had it already with -g -run.

Option -b includes -bt, and -bt includes -g.

- new file lib/bt-exe.c: used to link rt_printline and the
  exception handler from tccrun.c into executables/DLLs.

- new file lib/bt-log.c: provides a function that may be
  called from user code to print out a backtrace with a
  message (currently for i386/x86_64 only):

     int (*tcc_backtrace)(const char *fmt, ...);

  As an extra hack, if 'fmt' is prefixed like "^file.c^..."
  then the backtrace will skip calls from within 'file.c'.

- new file lib/bt-dll.c:  used on win32 to link the backtrace
  and bcheck functions with the main module at runtime

- bcheck.c: now uses the tcc_backtrace function from above

- tccgen.c: minor cleanups

- tccelf.c: stab sections get SHF_ALLOC for easy access.
  Also in relocate_section(): 64bit relocations for stabs
  in DLLs cannot work.  To find DLL addresses, the DLL base
  is added manually in tccrun.c via rc.prog_base instead.

- tccpe.c: there are some changes to allow merging sections,
  used to merge .finit_array into .data in the first place.

- tccpp.c: tcc -run now #defines __TCC_RUN__
  also: refactor a line in tal_realloc that was incompatible
  with bcheck

- tcctest.c: fixed a problem with r12 which tcc cannot preserve
  as well as gcc does.

- tests2/112_backtrace.c: test the feature and the bcheck test18
  that previously was in boundtest.c
2020-01-17 22:58:39 +01:00
..
chkstk.S some smaller fixes 2019-07-14 22:46:19 +02:00
crt1.c tccrun.c: standalone backtraces with -bt[N] or -b 2020-01-17 22:58:39 +01:00
crt1w.c win32: adjust new unicode support 2017-02-18 09:51:23 +01:00
dllcrt1.c Add windows constructor/destructor support 2019-11-27 18:29:12 +01: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 win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
user32.def tcc: re-enable correct option -r support 2017-02-20 18:58:08 +01:00
wincrt1.c Add windows constructor/destructor support 2019-11-27 18:29:12 +01: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