- 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 | case STT_NOTYPE: | 1058 | case STT_NOTYPE: |
| 1059 | case STT_OBJECT: | 1059 | case STT_OBJECT: |
| 1060 | case STT_FUNC: | 1060 | case STT_FUNC: |
| 1061 | case STT_TLS: | ||
| 1061 | case STT_SECTION: | 1062 | case STT_SECTION: |
| 1062 | n.n_type = N_SECT; | 1063 | n.n_type = N_SECT; |
| 1063 | break; | 1064 | break; |
| @@ -19,7 +19,7 @@ ifeq (,$(filter i386 x86_64,$(ARCH))) · 18 unmodified lines | |||
| 19 | SKIP += 85_asm-outside-function.test # x86 asm | 19 | SKIP += 85_asm-outside-function.test # x86 asm |
| 20 | SKIP += 127_asm_goto.test # hardcodes x86 asm | 20 | SKIP += 127_asm_goto.test # hardcodes x86 asm |
| 21 | endif | 21 | endif |
| 22 | ifeq (,$(filter x86_64 riscv64 arm64 arm i386,$(ARCH))) | 22 | ifeq (,$(filter x86_64 riscv64 arm64 i386,$(ARCH))) |
| 23 | SKIP += 144_tls.test # TLS only implemented on these architectures so far | 23 | SKIP += 144_tls.test # TLS only implemented on these architectures so far |
| 24 | endif | 24 | endif |
| 25 | ifeq ($(CONFIG_backtrace),no) | 25 | ifeq ($(CONFIG_backtrace),no) |
| @@ -50,6 +50,7 @@ ifeq (-$(CONFIG_WIN32)-,-yes-) · 24 unmodified lines | |||
| 50 | SKIP += 114_bound_signal.test # No pthread support | 50 | SKIP += 114_bound_signal.test # No pthread support |
| 51 | SKIP += 117_builtins.test # win32 port doesn't define __builtins | 51 | SKIP += 117_builtins.test # win32 port doesn't define __builtins |
| 52 | SKIP += 124_atomic_counter.test # No pthread support | 52 | SKIP += 124_atomic_counter.test # No pthread support |
| 53 | SKIP += 144_tls.test # No pthread support | ||
| 53 | endif | 54 | endif |
| 54 | ifneq (,$(filter OpenBSD FreeBSD NetBSD,$(TARGETOS))) | 55 | ifneq (,$(filter OpenBSD FreeBSD NetBSD,$(TARGETOS))) |
| 55 | SKIP += 106_versym.test # no pthread_condattr_setpshared | 56 | SKIP += 106_versym.test # no pthread_condattr_setpshared |