tinycc/lib
herman ten brugge 2f2708a769 Add dwarf support
The new gcc12 release does not support stabs any more.
This was a good reason to add support for dwarf.

The stabs code still works and is used if configure option --dwarf
is not used.

Tested on x86_64, i386, arm, arm64, riscv64 with dwarf-5.
Some debuggers may not support dwarf-5. Try using older dwarf versions
i that case.
The tccmacho.c code probably need some support for dwarf.

arm-gen.c, arm64-gen.c, i386-gen.c, riscv64-gen.c, x86_64-gen.
- fix get_sym_ref symbol size

arm-link.c, arm64-link.c, i386-link.c, riscv64-link.c, x86_64-link.c
- add R_DATA_32U

libtcc.c:
- parse -gdwarf option

tcc.c:
- add dwarf option

tcc.h:
- add dwarf option and sections

tccelf.c:
- init dwarf sections
- avoid adding sh_addr for dwarf sections
- remove dwarf relocs for output dll
- add dwarf sections for tccrun

tccgen.c:
- add dwarf defines + global data
- add dwarf_* functions
- mix dwarf code with stabs code
- a trick is used to emit function name in .debug_line section so
  only this section has to be parsed instead of .debug_info and
  .debug_abbrev.
- fix init debug_modes

tccrun.c:
- add dwarf sections in rt_context
- init them in tcc_run
- add new dwarf code rt_printline_dwarf to find file/function

dwarf.h:
- New file

tcc-doc.texi:
- document dwarf

configure:
- add dwarf option

lib/Makefile
- change -gstabs into -gdwarf

lib/bt-exe.c, tests/tests2/Makefile, tests/tests2/126_bound_global:
- Add __bound_init call
- Add new testcase to test it
2022-05-05 09:10:37 +02:00
..
alloca-bt.S tcc/lib: reduce number of files 2021-08-03 22:49:18 +02:00
alloca.S tcc/lib: reduce number of files 2021-08-03 22:49:18 +02:00
armeabi.c OpenBSD: arm fix 2021-01-17 20:43:15 +01:00
armflush.c Use arm assembler in lib dir 2021-01-23 19:08:59 +01:00
bcheck.c Fix when bound checking and test coverage is used at the same time 2022-03-17 18:06:02 +01:00
bt-dll.c rework leading underscores 2020-07-06 13:00:47 +02:00
bt-exe.c Add dwarf support 2022-05-05 09:10:37 +02:00
bt-log.c rework leading underscores 2020-07-06 13:00:47 +02:00
dsohandle.c Define __dso_handle in libtcc1.a 2019-06-22 01:38:43 +02:00
fetch_and_add.S tcc/lib: reduce number of files 2021-08-03 22:49:18 +02:00
lib-arm64.c Fix conversions of subnormals to long double 2020-07-15 22:02:02 +02:00
libtcc1.c Added __faststorefence() MSVC intrinsic (required e.g. by sqlite3). 2021-07-04 13:32:55 +02:00
Makefile Add dwarf support 2022-05-05 09:10:37 +02:00
stdatomic.c Fix make lib/stdatomic.c gcc compatible 2021-04-14 12:22:18 +02:00
tcov.c Fix tcov align and lock 2021-02-15 19:10:13 +01:00
va_list.c Struct va_arg fix 2020-09-17 08:42:28 +02:00