- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shl_load() and TLS (32-bit)
Operating System - HP-UX
1824218
Members
3195
Online
109669
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2000 10:44 AM
06-13-2000 10:44 AM
We're using shl_load() and have been successful until now:
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage:
/usr/lib/libcl.2
/usr/lib/dld.sl: Exec format error
Sure enough, man shl_load says it does not
work with thread local storage. So we tried
dlopen(), but apparently it's not supported
on 32 bits. We have no control over the
library that contains TLS. Is there a workaround? Will this be supported in the future? Thanks.
Clif
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage:
/usr/lib/libcl.2
/usr/lib/dld.sl: Exec format error
Sure enough, man shl_load says it does not
work with thread local storage. So we tried
dlopen(), but apparently it's not supported
on 32 bits. We have no control over the
library that contains TLS. Is there a workaround? Will this be supported in the future? Thanks.
Clif
Whatever works.
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2000 11:08 AM
06-13-2000 11:08 AM
Solution
The only options are to link the a.out with those
libraries that use TLS or to remove those library
dependencies from your shared library. There
won't be any way to shl_load TLS in the near future.
There aren't many system provided shared libraries
that use TLS. The only ones that you may want
to link into an a.out are libcl.sl and libpthread.sl. Of
course, if you link in libpthread.sl then your code
should be prepared to run in a threaded environment.
The a.out does not necessarily need to be directly
linked with the shared library containing TLS. If
the a.out is linked with "libmiddle.sl" and you can
add libcl.sl to the link line for libmiddle.sl, then it
will cause libcl.sl to be loaded at startup time before
your call to shl_load some library that needs libcl.sl.
If you are a little devious you can use "chatr +s enable"
and SHLIB_PATH to make an a.out load your private
version of libc.2 which pulls in both /usr/lib/libc.2
and /usr/lib/libcl.2.
libraries that use TLS or to remove those library
dependencies from your shared library. There
won't be any way to shl_load TLS in the near future.
There aren't many system provided shared libraries
that use TLS. The only ones that you may want
to link into an a.out are libcl.sl and libpthread.sl. Of
course, if you link in libpthread.sl then your code
should be prepared to run in a threaded environment.
The a.out does not necessarily need to be directly
linked with the shared library containing TLS. If
the a.out is linked with "libmiddle.sl" and you can
add libcl.sl to the link line for libmiddle.sl, then it
will cause libcl.sl to be loaded at startup time before
your call to shl_load some library that needs libcl.sl.
If you are a little devious you can use "chatr +s enable"
and SHLIB_PATH to make an a.out load your private
version of libc.2 which pulls in both /usr/lib/libc.2
and /usr/lib/libcl.2.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP