<?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: Wondering how to create linker map? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930384#M97312</link>
    <description>&lt;P&gt;Why would you want to use -m?&lt;BR /&gt;&lt;BR /&gt;You can get this info from elfdump(1):&lt;BR /&gt;$ elfdump -S -h a.out&lt;BR /&gt;&lt;BR /&gt;You can use aCC +help or the following for aC++ help:&lt;BR /&gt;&lt;A target="_blank" href="http://docs.hp.com/en/8759/index.htm"&gt;http://docs.hp.com/en/8759/index.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to display the objects/libs you are linked with: -Wl,-t&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Clay: Essentially that means that you have to turn on some compiler options to make the code relocatable. In HP-UX, .so's are more often .sl's&lt;BR /&gt;&lt;BR /&gt;The default on IPF is PIC, so no options are needed. Also on IPF, you should name your shlibs as .so, not the the PA convention of .sl.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;nm will dump the symbol table of an object file, library, or executable.&lt;BR /&gt;&lt;BR /&gt;elfdump -t is the correct tool to work on shlibs and executables, if you are using tricky linker options:&lt;BR /&gt;$ elfdump -s -n .dynsym a.out&lt;/P&gt;</description>
    <pubDate>Sat, 22 Oct 2011 00:32:01 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-10-22T00:32:01Z</dc:date>
    <item>
      <title>Wondering how to create linker map ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930376#M97304</link>
      <description>I am on hp-ux itanium the compiler and linker I am using is aCC, tried -m option, but still can get it work. Anything I am overlooked? Thanks!</description>
      <pubDate>Mon, 22 Jan 2007 10:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930376#M97304</guid>
      <dc:creator>kraft</dc:creator>
      <dc:date>2007-01-22T10:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Wondering how to create linker map ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930377#M97305</link>
      <description>You have to tell the compiler to send the -m option to the linker phase of the operation. Something like this:&lt;BR /&gt;&lt;BR /&gt;aCC -Wl,-m myfile.c &lt;BR /&gt;&lt;BR /&gt;This will output a map on stdout.</description>
      <pubDate>Mon, 22 Jan 2007 11:09:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930377#M97305</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-01-22T11:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Wondering how to create linker map ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930378#M97306</link>
      <description>Thanks! This works. One more question, how to display the library ( eg .o, .so) that my program linked with ?</description>
      <pubDate>Mon, 22 Jan 2007 13:22:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930378#M97306</guid>
      <dc:creator>kraft</dc:creator>
      <dc:date>2007-01-22T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Wondering how to create linker map ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930379#M97307</link>
      <description>ldd myprogram. ldd -&amp;gt; list dynamic dependencies. Man ldd for details.</description>
      <pubDate>Mon, 22 Jan 2007 13:28:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930379#M97307</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-01-22T13:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Wondering how to create linker map ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930380#M97308</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;call&lt;BR /&gt;chatr yourlinkedobject&lt;BR /&gt;&lt;BR /&gt;that will tell used runtime libraries (and more).&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Mon, 22 Jan 2007 13:28:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930380#M97308</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-01-22T13:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Wondering how to create linker map ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930381#M97309</link>
      <description>Thank you every one. Bear with me I am quite new in hp-ux. One more question what's the different between .o and .so. Is .so like dll on windows?</description>
      <pubDate>Mon, 22 Jan 2007 14:23:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930381#M97309</guid>
      <dc:creator>kraft</dc:creator>
      <dc:date>2007-01-22T14:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Wondering how to create linker map ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930382#M97310</link>
      <description>Well, it would be more accurate to say that .DLL's are like .so's since UNIX had them before there was even a Windows but .so are shared objects. Essentially that means that you have to turn on some compiler options to make the code relocatable. In HP-UX, .so's are more often .sl's but it's the same thing. You need to become familiar with two commands: nm and file. For example, file myfile.so will tell you what kind of file myfile.so is. nm will dump the symbol table of an object file, library, or executable. Man file and nm for details.</description>
      <pubDate>Mon, 22 Jan 2007 14:51:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930382#M97310</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-01-22T14:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wondering how to create linker map ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930383#M97311</link>
      <description>Again, Thank you for your help</description>
      <pubDate>Mon, 22 Jan 2007 16:03:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930383#M97311</guid>
      <dc:creator>kraft</dc:creator>
      <dc:date>2007-01-22T16:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wondering how to create linker map?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930384#M97312</link>
      <description>&lt;P&gt;Why would you want to use -m?&lt;BR /&gt;&lt;BR /&gt;You can get this info from elfdump(1):&lt;BR /&gt;$ elfdump -S -h a.out&lt;BR /&gt;&lt;BR /&gt;You can use aCC +help or the following for aC++ help:&lt;BR /&gt;&lt;A target="_blank" href="http://docs.hp.com/en/8759/index.htm"&gt;http://docs.hp.com/en/8759/index.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to display the objects/libs you are linked with: -Wl,-t&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Clay: Essentially that means that you have to turn on some compiler options to make the code relocatable. In HP-UX, .so's are more often .sl's&lt;BR /&gt;&lt;BR /&gt;The default on IPF is PIC, so no options are needed. Also on IPF, you should name your shlibs as .so, not the the PA convention of .sl.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;nm will dump the symbol table of an object file, library, or executable.&lt;BR /&gt;&lt;BR /&gt;elfdump -t is the correct tool to work on shlibs and executables, if you are using tricky linker options:&lt;BR /&gt;$ elfdump -s -n .dynsym a.out&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2011 00:32:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930384#M97312</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-22T00:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Wondering how to create linker map ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930385#M97313</link>
      <description>Dennis, these works as well. Thanks!&lt;BR /&gt;&lt;BR /&gt;Rather starting a new thread, I would like ask here, this is regarding stack trace. I know there are a macro we can use U_STACK_TRACE, just wondering if there are any other ways ? I have a program which crashed very strangely. I don't know the signal would be when it crashes. I tried SIGQUIT, but it wasn't. What I would like to do is whenever it crashes, it creates a stack trace. Any suggestions ?</description>
      <pubDate>Tue, 23 Jan 2007 10:11:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930385#M97313</guid>
      <dc:creator>kraft</dc:creator>
      <dc:date>2007-01-23T10:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Wondering how to create linker map?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930386#M97314</link>
      <description>&lt;P&gt;&amp;gt;I don't know the signal would be when it crashes. I tried SIGQUIT, but it wasn't. What I would like to do is whenever it crashes, it creates a stack trace.&lt;BR /&gt;&lt;BR /&gt;You can use a debugger to figure out the signal. Also "file core" should tell you the signal.&lt;BR /&gt;&lt;BR /&gt;You could call U_STACK_TRACE() from your signal handler. You must arm your handler for the signals you expect to catch. The latest version of libunwind will print the signal #.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2011 00:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wondering-how-to-create-linker-map/m-p/3930386#M97314</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-22T00:32:28Z</dc:date>
    </item>
  </channel>
</rss>

