<?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: ld error: $global$ (data) (probably missing /usr/ccs/lib/crt0.o) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953181#M713890</link>
    <description>hi Andrew,&lt;BR /&gt;  Adam deserves a 10 for his replies.  Please assign the points and make the thread complete so that others can also see it.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Umapathy&lt;BR /&gt;</description>
    <pubDate>Thu, 17 Apr 2003 11:54:47 GMT</pubDate>
    <dc:creator>Umapathy S</dc:creator>
    <dc:date>2003-04-17T11:54:47Z</dc:date>
    <item>
      <title>ld error: $global$ (data) (probably missing /usr/ccs/lib/crt0.o)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953177#M713886</link>
      <description>I'm trying to create a dynamic executable using ld (B.11.33 020617).  For the linker options, I'm using +s and -dynamic.  Based on my understanding of the man pages for crt0.o, it shouldn't even look for this file with the switch -dynamic.&lt;BR /&gt;&lt;BR /&gt;   All of the shared libraries that will be used by this dynamic executable were compiled with aCC using the -c and +z options.&lt;BR /&gt;&lt;BR /&gt;   The interesting thing is that if I use aCC instead of ld to build the dynamic executable, it works fine.  The problem with this is that the location of the shared libraries is fixed.  I need to be able to use the +s option with ld so that the LD_LIBRARY_PATH can be used to set the location of the shared libraries at run-time.&lt;BR /&gt;&lt;BR /&gt;    If anyone has any ideas on this, I'd greatly appreciate it.  I've tried just about everything ... The error message just doesn't make any sense to me.&lt;BR /&gt;&lt;BR /&gt;FWIW: The file /usr/ccs/lib/crt0.o does exist ($Revision: 92453-07 linker linker crt0.o B.11.33 020617 $)&lt;BR /&gt;&lt;BR /&gt;Thanks in advance..&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Apr 2003 17:02:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953177#M713886</guid>
      <dc:creator>Andrew Herrmann</dc:creator>
      <dc:date>2003-04-16T17:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: ld error: $global$ (data) (probably missing /usr/ccs/lib/crt0.o)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953178#M713887</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;And what about option '-b'?&lt;BR /&gt;This actually tells the linker to create share library instead of executable...&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Adam&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Apr 2003 07:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953178#M713887</guid>
      <dc:creator>Adam J Markiewicz</dc:creator>
      <dc:date>2003-04-17T07:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: ld error: $global$ (data) (probably missing /usr/ccs/lib/crt0.o)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953179#M713888</link>
      <description>Hi again&lt;BR /&gt;&lt;BR /&gt;I made a little more investigation.&lt;BR /&gt;How about this: Make yor executable with aCC, then:&lt;BR /&gt;chatr +s enable $(EXE)&lt;BR /&gt;&lt;BR /&gt;man chatr&lt;BR /&gt;quite usefull tool to postprocess.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Adam&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Apr 2003 09:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953179#M713888</guid>
      <dc:creator>Adam J Markiewicz</dc:creator>
      <dc:date>2003-04-17T09:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: ld error: $global$ (data) (probably missing /usr/ccs/lib/crt0.o)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953180#M713889</link>
      <description>FYI: I used the -b option with ld when linking the shared libraries.&lt;BR /&gt;&lt;BR /&gt;Compiling with aCC and then using chatr works perfectly!  Thanks for your help&lt;BR /&gt;&lt;BR /&gt;Andy</description>
      <pubDate>Thu, 17 Apr 2003 10:47:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953180#M713889</guid>
      <dc:creator>Andrew Herrmann</dc:creator>
      <dc:date>2003-04-17T10:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: ld error: $global$ (data) (probably missing /usr/ccs/lib/crt0.o)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953181#M713890</link>
      <description>hi Andrew,&lt;BR /&gt;  Adam deserves a 10 for his replies.  Please assign the points and make the thread complete so that others can also see it.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Umapathy&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Apr 2003 11:54:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953181#M713890</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-04-17T11:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: ld error: $global$ (data) (probably missing /usr/ccs/lib/crt0.o)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953182#M713891</link>
      <description>I also got exactly the same problem, after I used chatr suggested by Adam, I got another problem as follows:&lt;BR /&gt;&lt;BR /&gt;   Bad magic number for shared library.&lt;BR /&gt;&lt;BR /&gt;   ...&lt;BR /&gt;   &lt;BR /&gt;   Exec format error&lt;BR /&gt;&lt;BR /&gt;   If I only use aCC to compile the executable, everything is just fine.&lt;BR /&gt;&lt;BR /&gt;   Could you please tell me how to resolve this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks very much!&lt;BR /&gt;&lt;BR /&gt;Xin An</description>
      <pubDate>Tue, 21 Sep 2004 19:58:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953182#M713891</guid>
      <dc:creator>Xin An Chen</dc:creator>
      <dc:date>2004-09-21T19:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: ld error: $global$ (data) (probably missing /usr/ccs/lib/crt0.o)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953183#M713892</link>
      <description>your understanding that the linker should not bother about crt0 for '-dynamic' links is not correct (at least for PA32). PA32 dynamic executables still need crt0.o for program startup (e.g. to load the dynamic loader).&lt;BR /&gt;&lt;BR /&gt;when you dont give the compiler the '-b' option, it assumes that you want to build an executable. so when calling the linker, the compiler will include the crt0.o as the first object file in the link line. you may have missed this out when you linked using ld directly. you can use the compiler's -v flag to see what link line it uses. however it is recommended that you use the compiler for linking, unless you are very sure of what you are doing.</description>
      <pubDate>Wed, 22 Sep 2004 01:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953183#M713892</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2004-09-22T01:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: ld error: $global$ (data) (probably missing /usr/ccs/lib/crt0.o)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953184#M713893</link>
      <description>about your reason for using ld directly: you can pass anything to the linker using the -Wl flag on the compiler command line. so '+s' can be passed as '-Wl,+s' and '-h hiddensym' can be passed as '-Wl,-h,hiddensym' (i.e. replace spaces with commas). &lt;BR /&gt;&lt;BR /&gt;you can pass multiple such sets of options to the linker using as many '-Wl's as you like on the compile line.</description>
      <pubDate>Wed, 22 Sep 2004 04:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-global-data-probably-missing-usr-ccs-lib-crt0-o/m-p/2953184#M713893</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2004-09-22T04:02:06Z</dc:date>
    </item>
  </channel>
</rss>

