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

RTEMS trac trac at rtems.org
Wed Oct 18 13:17:45 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 Kinsey Moore):

 The MIPS CPU port in RTEMS doesn't yet support it, but this would be a
 good application of RTEMS_EXCEPTION_EXTENSIONS to accommodate the existing
 mechanism.

 Replying to [comment:25 Joel Sherrill]:
 > The rdhwr instruction is undefined and should generate an exception. It
 is expected that the OS will provide the TLS code in that exception. See
 https://www.linux-mips.org/wiki/NPTL for some details.
 >
 > I have hoped there was a way in GCC to switch to the generic subroutine
 call but I've never tripped across it. Perhaps something might be obvious
 if you search for that instruction in the mips specific GCC code.

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


More information about the bugs mailing list