From 38e96ac4323b02408c33d8e761fd0a05d24bc370 Mon Sep 17 00:00:00 2001 From: Deepika Date: Thu, 17 Aug 2017 15:39:12 -0500 Subject: [PATCH] __aeabi_read_tp function required for TLS in Dlib --- platform/mbed_retarget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/mbed_retarget.cpp b/platform/mbed_retarget.cpp index cd95decc08..02a9f85fc4 100644 --- a/platform/mbed_retarget.cpp +++ b/platform/mbed_retarget.cpp @@ -884,6 +884,9 @@ extern "C" WEAK void __iar_file_Mtxinit(__iar_Rmtx *mutex) {} extern "C" WEAK void __iar_file_Mtxdst(__iar_Rmtx *mutex) {} extern "C" WEAK void __iar_file_Mtxlock(__iar_Rmtx *mutex) {} extern "C" WEAK void __iar_file_Mtxunlock(__iar_Rmtx *mutex) {} +#if (__IAR_SYSTEMS_ICC__ >= 8) +extern "C" WEAK void *__aeabi_read_tp (void) {} +#endif #elif defined(__CC_ARM) // Do nothing #elif defined (__GNUC__)