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

RTEMS trac trac at rtems.org
Sat Aug 12 06:33:28 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):

 Test `dl11` fails on `arm` with:
 {{{
 *** BEGIN OF TEST libdl (RTL) 11 ***
 *** TEST VERSION: 6.0.0.10da3025186cadf2d78e34cf81cce02121069d44
 *** TEST STATE: EXPECTED_PASS
 *** TEST BUILD: RTEMS_DEBUG RTEMS_POSIX_API
 *** TEST TOOLS: 12.3.1 20230626 (RTEMS 6, RSB
 8e568b2ca3489d6bfa48e1d29618ea9b48a5b408, Newlib 4c7d0df)
 load: /dl11-o1.o
 handle: 0x20e148 loaded
 dlsym ptr_call failed: ret value bad
 }}}
 and on `aarch64` with:
 {{{
 *** BEGIN OF TEST libdl (RTL) 11 ***
 *** TEST VERSION: 6.0.0.10da3025186cadf2d78e34cf81cce02121069d44
 *** TEST STATE: EXPECTED_PASS
 *** TEST BUILD: RTEMS_DEBUG RTEMS_POSIX_API
 *** TEST TOOLS: 12.3.1 20230626 (RTEMS 6, RSB
 8e568b2ca3489d6bfa48e1d29618ea9b48a5b408, Newlib 4c7d0df)
 load: /dl11-o1.o
 handle: 0x40118610 has unresolved externals
 dlsym ptr_call failed: ret value bad
 }}}
 The `ptr_call` asks for a function pointer to:
 {{{
 nt *get_errno_ptr (void)
 {
   return &errno;
 }
 }}}
 and `error` is a TLS variable.

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


More information about the bugs mailing list