<?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: Finding Source file name from object or executable in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068800#M94764</link>
    <description>As a general rule, no. That's the kind of information that compiling with -g does provide. You can try the nm command and what but unless -g was used in the compile then no references to the source files exist. Normally, that name of the source file can be inferred from the object but that is not definitive and certainly does not include the full path.</description>
    <pubDate>Tue, 11 Sep 2007 09:42:18 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2007-09-11T09:42:18Z</dc:date>
    <item>
      <title>Finding Source file name from object or executable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068797#M94761</link>
      <description>Is it possible to find the source file name [including path] from the either the object or executable. The code doesn't have debug information so gdb also did not work.&lt;BR /&gt;&lt;BR /&gt;Amit</description>
      <pubDate>Tue, 11 Sep 2007 09:32:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068797#M94761</guid>
      <dc:creator>amit1209</dc:creator>
      <dc:date>2007-09-11T09:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Source file name from object or executable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068798#M94762</link>
      <description>Hi Amit:&lt;BR /&gt;&lt;BR /&gt;You could try:&lt;BR /&gt;&lt;BR /&gt;# what filename&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 11 Sep 2007 09:39:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068798#M94762</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-09-11T09:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Source file name from object or executable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068799#M94763</link>
      <description>Hi (again) Amit:&lt;BR /&gt;&lt;BR /&gt;Another useful view would be provided by:&lt;BR /&gt;&lt;BR /&gt;# nm filename&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 11 Sep 2007 09:41:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068799#M94763</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-09-11T09:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Source file name from object or executable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068800#M94764</link>
      <description>As a general rule, no. That's the kind of information that compiling with -g does provide. You can try the nm command and what but unless -g was used in the compile then no references to the source files exist. Normally, that name of the source file can be inferred from the object but that is not definitive and certainly does not include the full path.</description>
      <pubDate>Tue, 11 Sep 2007 09:42:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068800#M94764</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-09-11T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Source file name from object or executable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068801#M94765</link>
      <description>nm also only works when the compilation is done by using -g option. Unfortunately the option wasn't used.&lt;BR /&gt;&lt;BR /&gt;Amit</description>
      <pubDate>Tue, 11 Sep 2007 10:01:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068801#M94765</guid>
      <dc:creator>amit1209</dc:creator>
      <dc:date>2007-09-11T10:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Source file name from object or executable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068802#M94766</link>
      <description>"what" (sccs) or "ident" (rcs) might shed some light, but its a longshot.</description>
      <pubDate>Tue, 11 Sep 2007 10:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068802#M94766</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2007-09-11T10:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Source file name from object or executable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068803#M94767</link>
      <description>&lt;P&gt;See my answer to your question in your other thread:&lt;/P&gt;&lt;P&gt;&lt;A href="http://h30499.www3.hp.com/t5/Languages-and-Scripting/Extracing-function-names-from-a-C-object-file/m-p/2457315" target="_blank"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/Extracing-function-names-from-a-C-object-file/m-p/2457315&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;The code doesn't have debug information so gdb also did not work.&lt;BR /&gt;&lt;BR /&gt;If you are on IPF, you can usually get this info, even if -g isn't used. Unless the executable is stripped.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Clay: As a general rule, no. That's the kind of information that compiling with -g does provide.&lt;BR /&gt;&lt;BR /&gt;This info is available with commands mentioned in the link above.&lt;BR /&gt;Compiler option summary is available with footprints(1).&lt;BR /&gt;&lt;BR /&gt;&amp;gt;nm also only works when the compilation is done by using -g option.&lt;BR /&gt;&lt;BR /&gt;-g has nothing to do with nm(1), it doesn't look at debug info.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2011 01:18:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068803#M94767</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-25T01:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Source file name from object or executable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068804#M94768</link>
      <description>The odump does provide the filenames but without absolute path. However, the elfdump -dc option does not work and exits with Bad input file type -elfdumperr 2003&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Amit</description>
      <pubDate>Thu, 13 Sep 2007 02:43:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068804#M94768</guid>
      <dc:creator>amit1209</dc:creator>
      <dc:date>2007-09-13T02:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Source file name from object or executable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068805#M94769</link>
      <description>&amp;gt;The odump does provide the filenames but without absolute path.&lt;BR /&gt;&lt;BR /&gt;Sure it does.  You just have to glue the base name to the CWD on the next line.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;the elfdump -dc option does not work&lt;BR /&gt;&lt;BR /&gt;Sure it does.  ;-)&lt;BR /&gt;elfdump works on ELF files (IPF and PA64).  odump works on SOM files, PA32.</description>
      <pubDate>Thu, 13 Sep 2007 14:00:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/finding-source-file-name-from-object-or-executable/m-p/4068805#M94769</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-09-13T14:00:23Z</dc:date>
    </item>
  </channel>
</rss>

