Skip to content

Commit

Permalink
Disable TLS
Browse files Browse the repository at this point in the history
JIRA: RTOS-664
  • Loading branch information
badochov committed Jan 31, 2024
1 parent ce92eb8 commit 3da17c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ INSTALL_TARGETS := install-headers install-libs
ifeq ($(LIBPHOENIX_PIC), y)
CFLAGS += $(TARGET_PIC_FLAG)
ifeq ($(LIBPHOENIX_SHARED), y)
CPPFLAGS += -DLIBPHOENIX_SHARED
include shared.mk
endif
endif
Expand Down
6 changes: 6 additions & 0 deletions errno/errno.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
#include <arch.h>


#ifdef LIBPHOENIX_SHARED
/* FIXME: TLS is not yet supported by dynamic linker. */
#undef __LIBPHOENIX_ARCH_TLS_SUPPORTED
#endif


#ifdef __LIBPHOENIX_ARCH_TLS_SUPPORTED

static __thread int __errno_tls;
Expand Down

0 comments on commit 3da17c2

Please sign in to comment.