We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e7851c + 83409c5 commit b6e50f5Copy full SHA for b6e50f5
platform/mbed_retarget.cpp
@@ -942,7 +942,11 @@ extern "C" WEAK void __iar_file_Mtxdst(__iar_Rmtx *mutex) {}
942
extern "C" WEAK void __iar_file_Mtxlock(__iar_Rmtx *mutex) {}
943
extern "C" WEAK void __iar_file_Mtxunlock(__iar_Rmtx *mutex) {}
944
#if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000)
945
-extern "C" WEAK void *__aeabi_read_tp (void) { return NULL ;}
+#pragma section="__iar_tls$$DATA"
946
+extern "C" WEAK void *__aeabi_read_tp (void) {
947
+ // Thread Local storage is not supported, using main thread memory for errno
948
+ return __section_begin("__iar_tls$$DATA");
949
+}
950
#endif
951
#elif defined(__CC_ARM)
952
// Do nothing
0 commit comments