[RTEMS Project] #4920: libdl does not support TLS

RTEMS trac trac at rtems.org
Thu Jun 29 23:29:57 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 Chris Johns):

 We need to add support to din the TSL base for a thread for each
 architecture:

 * aarch64
 * arm
 * bfin
 * i386
 * lm32
 * m68k
 * mips
 * moxie
 * powerpc
 * riscv
 * sparc
 * v850

 == AARCH64
 {{{
 static void* rtems_rtl_tls_get_base (void) {
   intptr_t value;
   __asm__ volatile (
     \"mrs %0, TPIDR_EL0\" : \"=&r\" ( value ) : : \"memory\"
   );",
   return value;
 }
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4920#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list