From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c4ab69bf7d3638f1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Noel Duffy Newsgroups: comp.lang.ada Subject: Re: Differences between gnat 4.4.5 and 4.5.1 Date: Thu, 10 Mar 2011 21:36:28 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 10 Mar 2011 21:36:28 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="qqhL6owrjvUMOA3MMS4A8A"; logging-data="27156"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LIe1Dll1vZ+T0wWroLyvNquOeQrU93PE=" User-Agent: Pan/0.133 (House of Butterflies) Cancel-Lock: sha1:1UT46gtvwbjRzPwcx0jpjuB3Kdo= Xref: g2news2.google.com comp.lang.ada:19035 Date: 2011-03-10T21:36:28+00:00 List-Id: On Thu, 10 Mar 2011 05:48:25 -0800, Julian Leyh wrote: > What do "file" and "ldd" tell you about them? Are the sizes more similar > if you "strip" them? As I said, I compile with this command: $ gnatmake -f -Os hello.adb -largs -s which strips the executables, so the size disparity is for final stripped executables. file shows this for Fedora: $ file hello hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped On Debian: $ file hello hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped ldd shows that both are dynamically linked against libgnat. I.e, on Fedora: $ ldd hello linux-vdso.so.1 => (0x00007fff1b5a3000) libgnat-4.5.so => /usr/lib64/libgnat-4.5.so (0x00007f89c2909000) libc.so.6 => /lib64/libc.so.6 (0x000000343e600000) libm.so.6 => /lib64/libm.so.6 (0x000000343f200000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x000000343f600000) /lib64/ld-linux-x86-64.so.2 (0x000000343e200000) On Debian: $ ldd hello linux-vdso.so.1 => (0x00007fff52d9e000) libgnat-4.4.so.1 => /usr/lib/libgnat-4.4.so.1 (0x00007f47c6c2a000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f47c6a14000) libc.so.6 => /lib/libc.so.6 (0x00007f47c66b2000) libm.so.6 => /lib/libm.so.6 (0x00007f47c6430000) /lib64/ld-linux-x86-64.so.2 (0x00007f47c7160000)