[RTEMS Project] #4920: libdl does not support TLS
RTEMS trac
trac at rtems.org
Wed Aug 16 14:36:40 UTC 2023
#4920: libdl does not support TLS
-------------------------+---------------------
Reporter: Chris Johns | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: lib/dl | Version: 6
Severity: blocker | Resolution:
Keywords: | Blocked By:
Blocking: |
-------------------------+---------------------
Comment (by Joel Sherrill):
The following table summarises the state of TLS support for each
architecture listed previously. I based this on grep'ing for TLS in the
score/cpu port directory and looking at generated assembly.
||Architecture||Mechanism||Support in RTEMS||
||bfin || ___emutls_get_address() || No ||
||i386 || %gs register || Yes ||
||lm32 || Unknown || No ||
||m68k || __m68k_read_tp() || Yes ||
||mips || Illegal Instruction Exception || No ||
||moxie || __emutls_get_address || No ||
||riscv || %tp register || Yes ||
||v850 || ___emutls_get_address || No ||
I used this program to see what GCC generates.
{{{
__thread int i;
int returni(void)
{
return i;
}
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4920#comment:6>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list