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

RTEMS trac trac at rtems.org
Wed Aug 16 23:59:05 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):

 > Question: Do we want to disable use of TLS in the tools for those we
 have no TLS support for? I think this is the safest option.

 The change is not adding the ability to load TLS variables. That is out is
 scope for this change. The regression is only for archs that support TLS
 and where newlib has been updated to use TLS for reeent data. If this
 newlib has not been been updated there is no regression so I do not think
 we need to disable archs.

 **Note**:
 1. If an arch supports TLS and newlib has not been updated and a user
 attempts to load a TLS variable an error is generated which is the same
 error as before.
 2. The `rtems_rtl_tls_get_base()` call needs to be present if the base
 image has TSL symbols. If it does not there should be no references.

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


More information about the bugs mailing list