<?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: Difference in size for an object file for the same source built in different directories. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366364#M668501</link>
    <description>&amp;gt;stripping symbol table and debug information off the binaries does not result in same size.&lt;BR /&gt;&lt;BR /&gt;If you use strip(1) on objects, you should use "strip -l".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;should not this be taken off when we run the binaries through strip?&lt;BR /&gt;&lt;BR /&gt;Unfortunately no.  .note sections aren't strippable.  (I have already filed an enhancement on that.)&lt;BR /&gt;elfdump -dc a.o&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Any binary security related fundamentals involved? /* to prevent address prediction &lt;BR /&gt;&lt;BR /&gt;Possibly IP issues.</description>
    <pubDate>Wed, 25 Feb 2009 21:01:42 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-02-25T21:01:42Z</dc:date>
    <item>
      <title>Difference in size for an object file for the same source built in different directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366359#M668496</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Am working on an HPUX IA 64 machine [machine details and compiler details below]&lt;BR /&gt;&lt;BR /&gt;As seen, the object file for even a simple src containing just 'int main() { return 0;}' differs in size when compiled (/opt/aCC/bin/aCC -c) in different directories. Is this the expected behaviour of aCC? &lt;BR /&gt;&lt;BR /&gt;This results in difference in size of the resulting shared object built too. &lt;BR /&gt;&lt;BR /&gt;Is this an anomaly? or it this the normal behaviour? If so, is there any specific reason behind this phenomenon. &lt;BR /&gt;&lt;BR /&gt; Kindly help me understand the issue/details involved. &lt;BR /&gt;&lt;BR /&gt;Am a newbie with regard to HPUX, so kindly be elaborate in the answers so that I could follow the same. &lt;BR /&gt;&lt;BR /&gt;Thnx in advance!&lt;BR /&gt;&lt;BR /&gt;Details:&lt;BR /&gt;&lt;BR /&gt;$/opt/aCC/bin/aCC --version&lt;BR /&gt;aCC: HP C/aC++ B3910B A.06.12 [Nov 03 2006]&lt;BR /&gt;$uname -a&lt;BR /&gt;HP-UX thebox B.11.31 U ia64 1270485177  unlimited-user license&lt;BR /&gt;&lt;BR /&gt;other details derived thru machinfo &lt;BR /&gt;-----------------------------------&lt;BR /&gt;Platform info:&lt;BR /&gt;   Model:                  "ia64 hp server rx6600"&lt;BR /&gt;&lt;BR /&gt;OS info:&lt;BR /&gt;   Nodename:  thebox&lt;BR /&gt;   Release:   HP-UX B.11.31&lt;BR /&gt;   Version:   U (unlimited-user license)&lt;BR /&gt;   Machine:   ia64&lt;BR /&gt;   ID Number: 1270485177&lt;BR /&gt;   vmunix _release_version:&lt;BR /&gt;@(#) $Revision: vmunix:    B.11.31_LR FLAVOR=perf&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2009 15:07:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366359#M668496</guid>
      <dc:creator>Raghava_1</dc:creator>
      <dc:date>2009-02-25T15:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in size for an object file for the same source built in different directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366360#M668497</link>
      <description>Sample run:&lt;BR /&gt;&lt;BR /&gt;  &amp;gt; cat &amp;gt; a.c&lt;BR /&gt;  int main(){ return 0;}&lt;BR /&gt;  &amp;gt; /opt/aCC/bin/aCC  -c a.c&lt;BR /&gt;  &amp;gt; cd c2&lt;BR /&gt;  /c2&amp;gt; /opt/aCC/bin/aCC  -c ../a.c&lt;BR /&gt;  /c2&amp;gt; cd c3&lt;BR /&gt;  /c2/c3&amp;gt; /opt/aCC/bin/aCC  -c ../../a.c&lt;BR /&gt;  /c2/c3&amp;gt; cd c4&lt;BR /&gt;  /c2/c3/c4&amp;gt; /opt/aCC/bin/aCC  -c ../../../a.c&lt;BR /&gt;  /c2/c3/c4&amp;gt; cd c5&lt;BR /&gt;  /c2/c3/c4/c5&amp;gt; /opt/aCC/bin/aCC  -c ../../../../a.c&lt;BR /&gt;  /c2/c3/c4/c5&amp;gt; cd ../../../../&lt;BR /&gt;  &amp;gt; find ./ -name a.o |xargs ls -lrt&lt;BR /&gt;  -rw-r--r--   1 u33    u33    2448 Feb 25 20:15 ./a.o&lt;BR /&gt;  -rw-r--r--   1 u33    u33    2472 Feb 25 20:15 ./c2/a.o&lt;BR /&gt;  -rw-r--r--   1 u33    u33 2488 Feb 25 20:15 ./c2/c3/a.o&lt;BR /&gt;  -rw-r--r--   1 u33    u33 2512 Feb 25 20:15 ./c2/c3/c4/a.o&lt;BR /&gt;  -rw-r--r--   1 u33    u33  2532 Feb 25 20:16 ./c2/c3/c4/c5/a.o&lt;BR /&gt;  &amp;gt;&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2009 15:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366360#M668497</guid>
      <dc:creator>Raghava_1</dc:creator>
      <dc:date>2009-02-25T15:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in size for an object file for the same source built in different directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366361#M668498</link>
      <description>strings ./a.o&lt;BR /&gt;strings ./c2/c3/c4/c5/a.o&lt;BR /&gt;&lt;BR /&gt;man strip&lt;BR /&gt;&lt;BR /&gt;Why do you care?</description>
      <pubDate>Wed, 25 Feb 2009 16:11:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366361#M668498</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-02-25T16:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in size for an object file for the same source built in different directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366362#M668499</link>
      <description>&amp;gt;Is this the expected behaviour of aCC?&lt;BR /&gt;&lt;BR /&gt;Yes, the PWD and file paths are recorded in the object file.</description>
      <pubDate>Wed, 25 Feb 2009 16:52:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366362#M668499</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-25T16:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in size for an object file for the same source built in different directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366363#M668500</link>
      <description>@steven: Thnx! &lt;BR /&gt;&lt;BR /&gt;imho, stripping symbol table and debug information off the binaries does not result in same size. (as checked) &lt;BR /&gt;&lt;BR /&gt;output from 'strings' for different .o files doesn't have a diff too. (as redirected to a file and diff -bw 'd)&lt;BR /&gt;&lt;BR /&gt;@dennis: Thnx! &lt;BR /&gt;Cool! But, should not this be taken off when we run the binaries through strip? This behaviour is not seen in gcc/any other compiler, if am right. Any binary security related funda involved? /* to prevent address prediction etc, apart from the standard PIC stuff */ &lt;BR /&gt;Please correct me if am wrong! &lt;BR /&gt;&lt;BR /&gt;Thnx n Rgds!&lt;BR /&gt;_raghava_</description>
      <pubDate>Wed, 25 Feb 2009 17:31:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366363#M668500</guid>
      <dc:creator>Raghava_1</dc:creator>
      <dc:date>2009-02-25T17:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in size for an object file for the same source built in different directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366364#M668501</link>
      <description>&amp;gt;stripping symbol table and debug information off the binaries does not result in same size.&lt;BR /&gt;&lt;BR /&gt;If you use strip(1) on objects, you should use "strip -l".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;should not this be taken off when we run the binaries through strip?&lt;BR /&gt;&lt;BR /&gt;Unfortunately no.  .note sections aren't strippable.  (I have already filed an enhancement on that.)&lt;BR /&gt;elfdump -dc a.o&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Any binary security related fundamentals involved? /* to prevent address prediction &lt;BR /&gt;&lt;BR /&gt;Possibly IP issues.</description>
      <pubDate>Wed, 25 Feb 2009 21:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-in-size-for-an-object-file-for-the-same-source-built/m-p/4366364#M668501</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-25T21:01:42Z</dc:date>
    </item>
  </channel>
</rss>

