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,FREEMAIL_FROM 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: g2news1.google.com!news4.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Mart van de Wege Newsgroups: comp.lang.ada Subject: Re: Differences between gnat 4.4.5 and 4.5.1 Date: Fri, 11 Mar 2011 10:16:47 +0100 Message-ID: <86lj0m2f0g.fsf@gareth.avalon.lan> References: <86tyfa3bmz.fsf@gareth.avalon.lan> <87mxl2vemt.fsf@ludovic-brenta.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net nOgfPKPrMGJpuFzxoJ7S8Qtd1/IbnMV9smQrYb2yfBArRQwsRJ X-Orig-Path: gareth.avalon.lan!not-for-mail Cancel-Lock: sha1:2UclwzpyT+ewXP9mznZ/BYY61gY= sha1:XN/7E60C/TLbXts3Pm39G0RchSA= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Xref: g2news1.google.com comp.lang.ada:18078 Date: 2011-03-11T10:16:47+01:00 List-Id: Ludovic Brenta writes: > Mart van de Wege writes: >> Julian Leyh writes: >> >>> On 10 Mrz., 07:01, Noel Duffy wrote: >>>> I wonder whether what I am seeing is a result of a difference in gcc-gnat >>>> version, a difference in distribution packaging, or possibly a >>>> combination of both. Is there anyone using Fedora here who could possibly >>>> shed any light on this? >>> >>> What do "file" and "ldd" tell you about them? Are the sizes more >>> similar if you "strip" them? >> >> I'd be inclined to think stripping may be the culprit. Debian is well >> known to use stripped binaries by default, so I wouldn't be surprised >> if the various toolchains are set up that way as well. >> >> IIRC, this is what led them to stop being the default GNU distro, as >> the GNU folks like their binaries with debug info by default. And >> since Fedora is mostly a Red Hat project, and Red Hat has absorbed a >> *lot* of the GCC devs via Cygnus, I'd expect Fedora to *not* strip by >> default. >> >> Ludovic could probably answer that one in his sleep. > > No, not in my sleep :) > > Stripping means removing debugging symbols from an executable. For the > debugging symbols to be present in the first place requires an explicit > -g option. > > The "default" you speak of is that contained in most upstream Makefiles. > Debian *packaging scripts*, by default, passes -g to the compiler and > then strips the executables, moving the debugging symbols to a separate > -dbg package (this is in fact mandatory for the Ada libraries...). But > packaging scripts have nothing to do with the OP's way of calling GCC. > Thanks. That is clear. I was working from vague recollection about the Debian/GNU split. For work and hobby, I just use the tools provided, not worrying overmuch about such details. And I have a distribution maintainer who does a lot of work to keep me from worrying. For which I say: Thanks Ludo. Mart -- "We will need a longer wall when the revolution comes." --- AJS, quoting an uncertain source.