tinycc/lib
herman ten brugge c8ef84c854 Add support for apple m1
The apple m1 uses position independent executables (pie).
I have implemented this in tccmacho.c

Apple also uses the stack different for var_args.
Also characters are signed instead of unsigned.
This is implemented in arm64-gen.c/tccdefs.h

Add bounds checking lib to lib/Makefile.

Add underscore support in lib/atomic.S and lib/fetch_and_add.S

Disable __clear_cache in lib/lib-arm64.c (Use system version).
I will try to fix this in future push.

Disable test_asm_call in tests/tcctest.c. Clang does not support @plt.
Also disable weak symbols test.
I will try to fix weak support in future push.

Disable tests/tests2/124_atomic_counter.c for 64BITS.
This is a bug in the atomic code and will be fixed in future push.

You have to use --dwarf configure option. stabs only works with -run.

tested on apple x86_64(10.5) and arm64(12.3).
2022-11-16 12:52:51 -06: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
atomic.S Add support for apple m1 2022-11-16 12:52:51 -06:00
bcheck.c tcc android-enabled (armeabi-v7a) 2022-07-24 09:51:32 +02:00
bt-dll.c Removed __bound_exit_dll from lib/bt-dll.c 2022-05-19 09:42:41 +02:00
bt-exe.c Add extra locking in bound checking code 2022-07-09 12:10:08 +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 Add support for apple m1 2022-11-16 12:52:51 -06:00
lib-arm64.c Add support for apple m1 2022-11-16 12:52:51 -06:00
libtcc1.c Added __faststorefence() MSVC intrinsic (required e.g. by sqlite3). 2021-07-04 13:32:55 +02:00
Makefile Add support for apple m1 2022-11-16 12:52:51 -06:00
stdatomic.c Add atomic functions for arm/arm64/riscv 2022-10-16 18:51:56 +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