‑‑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, and the sections .tdata and .tbss will continue to use the names .tdata and .tbss. If the option ‑‑threaded_lib is not used, the contents of the section .tdata will be handled as if they resided in .data and the contents of the section .tbss will be handled as if they resided in .bss.
Caution
Project>Options>General Options>Library Configuration>Enable thread support in library