RTEMS | testsuites/libtests/dl06: The module links thread-local objects (#5802)

Sebastian Huber (@sebhub) gitlab at rtems.org
Sat Oct 3 13:32:24 UTC 2026



Issue created by Sebastian Huber: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5802



The module of `dl06` calls `lcong48()`.  With a Newlib built with `--enable-newlib-reent-thread-local`, the object file of `lcong48()` defines the thread-local state of the rand48 functions.  The thread-local storage of each thread has the size which the link of the base image determines.  A loaded module therefore cannot provide thread-local objects.  The load stops with "global symbol not found: _tls_rand48_add".

The test can link `lcong48()` into the base image, so that the module resolves it there.  The defects of rtems-ld and of the RAP loader which make `dl06` fail on other architectures, for example #4001 and #4948, are separate.

Found while running the full test suite on eleven simulators.  This description was created with Claude Code assistance.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5802
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/5-9kio3fn8yzq81qqt7yyw4kkkd-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20261003/92fe9948/attachment.htm>


More information about the bugs mailing list