- tccmacho.c: add STT_TLS to convert_symbol() for Mach-O output - tests/tests2/Makefile: skip 144_tls on Win32 (no pthread.h) and remove arm from TLS arch list (QEMU user-mode cannot emulate MRC p15 TLS register access)
Unified · Split
| @@ -1058,6 +1058,7 @@ static void convert_symbol(TCCState *s1, struct macho *mo, struct nlist_64 *pn) · 1057 unmodified lines | ||
| 1058 | 1058 | case STT_NOTYPE: |
| 1059 | 1059 | case STT_OBJECT: |
| 1060 | 1060 | case STT_FUNC: |
| 1061 | + case STT_TLS: | |
| 1061 | 1062 | case STT_SECTION: |
| 1062 | 1063 | n.n_type = N_SECT; |
| 1063 | 1064 | break; |
| @@ -19,7 +19,7 @@ ifeq (,$(filter i386 x86_64,$(ARCH))) · 18 unmodified lines | ||
| 19 | 19 | SKIP += 85_asm-outside-function.test # x86 asm |
| 20 | 20 | SKIP += 127_asm_goto.test # hardcodes x86 asm |
| 21 | 21 | endif |
| 22 | −ifeq (,$(filter x86_64 riscv64 arm64 arm i386,$(ARCH))) | |
| 22 | +ifeq (,$(filter x86_64 riscv64 arm64 i386,$(ARCH))) | |
| 23 | 23 | SKIP += 144_tls.test # TLS only implemented on these architectures so far |
| 24 | 24 | endif |
| 25 | 25 | ifeq ($(CONFIG_backtrace),no) |
| @@ -50,6 +50,7 @@ ifeq (-$(CONFIG_WIN32)-,-yes-) · 24 unmodified lines | ||
| 50 | 50 | SKIP += 114_bound_signal.test # No pthread support |
| 51 | 51 | SKIP += 117_builtins.test # win32 port doesn't define __builtins |
| 52 | 52 | SKIP += 124_atomic_counter.test # No pthread support |
| 53 | + SKIP += 144_tls.test # No pthread support | |
| 53 | 54 | endif |
| 54 | 55 | ifneq (,$(filter OpenBSD FreeBSD NetBSD,$(TARGETOS))) |
| 55 | 56 | SKIP += 106_versym.test # no pthread_condattr_setpshared |