<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: shl_load problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shl-load-problem/m-p/2482253#M18360</link>
    <description>I am afraid you have have hit the dynamic loader's limitation stated in man shl_load(3x): shl_load cannot load a shared-library (or any of its dependent libraries) if it uses thread local storage.&lt;BR /&gt;&lt;BR /&gt;You will either have to arrange for the shared-library and its dependents to get loaded during program start-up (by linking them with the executable on the command-line) or you will have to change your library code to stop using TLS.</description>
    <pubDate>Mon, 15 Jan 2001 12:58:06 GMT</pubDate>
    <dc:creator>Kiran N. Mehta</dc:creator>
    <dc:date>2001-01-15T12:58:06Z</dc:date>
    <item>
      <title>shl_load problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shl-load-problem/m-p/2482252#M18359</link>
      <description>i have to build a dynamic library but when i start the main program i receive :&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1&lt;BR /&gt;/usr/lib/dld.sl: Exec format error&lt;BR /&gt;&lt;BR /&gt;I have no choice, my library must be shared, is there a solution ?&lt;BR /&gt;&lt;BR /&gt;Thanx</description>
      <pubDate>Fri, 12 Jan 2001 14:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shl-load-problem/m-p/2482252#M18359</guid>
      <dc:creator>Dedieu</dc:creator>
      <dc:date>2001-01-12T14:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: shl_load problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shl-load-problem/m-p/2482253#M18360</link>
      <description>I am afraid you have have hit the dynamic loader's limitation stated in man shl_load(3x): shl_load cannot load a shared-library (or any of its dependent libraries) if it uses thread local storage.&lt;BR /&gt;&lt;BR /&gt;You will either have to arrange for the shared-library and its dependents to get loaded during program start-up (by linking them with the executable on the command-line) or you will have to change your library code to stop using TLS.</description>
      <pubDate>Mon, 15 Jan 2001 12:58:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shl-load-problem/m-p/2482253#M18360</guid>
      <dc:creator>Kiran N. Mehta</dc:creator>
      <dc:date>2001-01-15T12:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: shl_load problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shl-load-problem/m-p/2482254#M18361</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;I know of two ways to solve this problem. &lt;BR /&gt;&lt;BR /&gt;a) eliminate all libraries from the link list that use TLS. In our case, this was the pthread library that was linked to our lib but never used. &lt;BR /&gt;&lt;BR /&gt;b) Install patch PHSS_24303 . It adds a LD_PRELOAD functionality to overcome this problem. Look into the description of this patch for more information. In general, I found this patch to be very recommendable. &lt;BR /&gt;&lt;BR /&gt;Regards, M.S.</description>
      <pubDate>Thu, 17 Jan 2002 11:31:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shl-load-problem/m-p/2482254#M18361</guid>
      <dc:creator>Martin Schneider_2</dc:creator>
      <dc:date>2002-01-17T11:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: shl_load problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shl-load-problem/m-p/2482255#M18362</link>
      <description>Hi Martin Schneider&lt;BR /&gt;&lt;BR /&gt;I also get the same symptom&lt;BR /&gt;/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1 &lt;BR /&gt;/usr/lib/dld.sl: Exec format error &lt;BR /&gt;&lt;BR /&gt;I follow your 2 suggestions but the problem does not solve. Can you give more detailed info for me to solve the problem? Any example?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 13 Mar 2002 07:44:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shl-load-problem/m-p/2482255#M18362</guid>
      <dc:creator>aaa_17</dc:creator>
      <dc:date>2002-03-13T07:44:46Z</dc:date>
    </item>
  </channel>
</rss>

