<?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 DP relative code in file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dp-relative-code-in-file/m-p/2657190#M722976</link>
    <description>We try to link a program on HP and get the error message like that:&lt;BR /&gt;$CC -b -o uvtest.sl uvtest.o -L/var/uv/lib -lvm_ici&lt;BR /&gt;&lt;BR /&gt;/usr/ccs/bin/ld:  DP relative code in file&lt;BR /&gt;/var/uv/lib/libvm_ici.a(ic_info.o) - shared library must be position independent. Use +z or +Z to recompile.&lt;BR /&gt;&lt;BR /&gt;What is this means?&lt;BR /&gt;&lt;BR /&gt;Is this means the library libvm_ici.a has some code be compiled without -z options?&lt;BR /&gt;Is this means if we link the a shared library, all the object must compiled with -z option?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
    <pubDate>Fri, 01 Feb 2002 17:05:06 GMT</pubDate>
    <dc:creator>Jianhua Zhou</dc:creator>
    <dc:date>2002-02-01T17:05:06Z</dc:date>
    <item>
      <title>DP relative code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dp-relative-code-in-file/m-p/2657190#M722976</link>
      <description>We try to link a program on HP and get the error message like that:&lt;BR /&gt;$CC -b -o uvtest.sl uvtest.o -L/var/uv/lib -lvm_ici&lt;BR /&gt;&lt;BR /&gt;/usr/ccs/bin/ld:  DP relative code in file&lt;BR /&gt;/var/uv/lib/libvm_ici.a(ic_info.o) - shared library must be position independent. Use +z or +Z to recompile.&lt;BR /&gt;&lt;BR /&gt;What is this means?&lt;BR /&gt;&lt;BR /&gt;Is this means the library libvm_ici.a has some code be compiled without -z options?&lt;BR /&gt;Is this means if we link the a shared library, all the object must compiled with -z option?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 01 Feb 2002 17:05:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dp-relative-code-in-file/m-p/2657190#M722976</guid>
      <dc:creator>Jianhua Zhou</dc:creator>
      <dc:date>2002-02-01T17:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: DP relative code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dp-relative-code-in-file/m-p/2657191#M722977</link>
      <description>&lt;BR /&gt;From man cc:&lt;BR /&gt;&lt;BR /&gt; +z,+Z          Both of these options cause the compiler to generate                                                           &lt;BR /&gt;                     position independent code (PIC) for use in building                                                            &lt;BR /&gt;                     shared libraries.  +Z is the default in 64-bit mode.                                                           &lt;BR /&gt;                     The -G and -p options are ignored if +z or +Z is used.                                                         &lt;BR /&gt;                     Normally, +z should be used to generate PIC; however,                                                          &lt;BR /&gt;                     when certain limits are exceeded, +Z is required to                                                            &lt;BR /&gt;                     generate PIC.  The ld linker issues the error                                                                  &lt;BR /&gt;                     indicating when +Z is required.  If both +z and +Z are                                                         &lt;BR /&gt;                     specified, only the last one encountered applies.  For                                                         &lt;BR /&gt;                     a more complete discussion regarding PIC and these                                                             &lt;BR /&gt;                     options, see HP-UX Linker and Libraries Online User's                                                          &lt;BR /&gt;                     Guide and the manual Programming on HP-UX.                                                                     &lt;BR /&gt;</description>
      <pubDate>Tue, 19 Feb 2002 16:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dp-relative-code-in-file/m-p/2657191#M722977</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-02-19T16:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: DP relative code in file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dp-relative-code-in-file/m-p/2657192#M722978</link>
      <description>The vm_ici library you are linking with has not been compiled as PIC (with +z), so you cannot use it in a shared library.  If you have this libraries source code, simply recompile with +z, otherwise you will have to contact the vendor for a shared version.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Feb 2002 16:50:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dp-relative-code-in-file/m-p/2657192#M722978</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-02-19T16:50:31Z</dc:date>
    </item>
  </channel>
</rss>

