‑‑threaded_lib
In this section:
Syntax
‑‑threaded_lib
Description
Use this option to automatically configure the runtime library for use with threads.
When this option is used, the linker creates the sections __iar_tls$$DATA and __iar_tls$$INIT_DATA. Thread-local data that resides in sections that have the TLS bit set is placed in sections called .tdata and .tbss. If the option ‑‑threaded_lib is not used, thread-local data will be placed with the non-threaded data as usual.
Caution
Project>Options>General Options>Library Configuration>Enable thread support in library