From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41270 invoked by alias); 7 Jun 2016 20:32:05 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 41261 invoked by uid 89); 7 Jun 2016 20:32:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-96.3 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=donmez, Donmez, Ismail, H*i:sk:CAFo71_ X-HELO: calimero.vinschen.de Received: from ipbcc0227e.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.34.126) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 07 Jun 2016 20:31:55 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 16BC9A80625; Tue, 7 Jun 2016 22:31:53 +0200 (CEST) Date: Tue, 07 Jun 2016 20:32:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: nm for .exe extensions? Message-ID: <20160607203153.GE3023@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <76282617-B02E-4782-B4A0-AEB3756DE152@etr-usa.com> <1465314195730-127453.post@n5.nabble.com> <20160607161221.GD3023@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tNQTSEo8WG/FKZ8E" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-SW-Source: 2016-06/txt/msg00087.txt.bz2 --tNQTSEo8WG/FKZ8E Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1845 On Jun 7 19:23, Ismail Donmez wrote: > Hi, >=20 > On Tue, Jun 7, 2016 at 7:12 PM, Corinna Vinschen > wrote: > > On Jun 7 08:43, Bill Smith wrote: > >> Warren Young-2 wrote > >> > On May 24, 2016, at 6:43 AM, Benjamin Cao < > >> > >> > becao@ > >> > >> > > wrote: > >> >> > >> >> The executable, when run with nm in Cygwin, results in a "no symbol= s" > >> >> result, whereas it generates a symbol table in unix. > >> > > >> > That=E2=80=99s not what I see here. Given hello.c containing a =E2= =80=9CHello, world!=E2=80=9D > >> > program: > >> > > >> > $ make hello > >> > cc hello.c -o hello > >> > $ nm hello.exe | wc -l > >> > 389 > >> > > >> > If I strip the exe, I get =E2=80=9CNo symbols,=E2=80=9D as expected.= There=E2=80=99s no reason a > >> > finished executable should have much in the way of exported symbols > >> > without debug info, since it is self-contained. You would only expe= ct to > >> > get useful output from nm on a stripped binary if it=E2=80=99s an ob= ject file or a > >> > DLL. > >> > >> Hi, I'm picking this issue up from my colleague, Ben Cao. We're using > >> Visual Studio C++ to compile the executables/objects. Is the issue th= at > >> Visual Studio places the information in the .pdb file? That's why nm > >> doesn't display any info on an *.exe ? > > > > PDB is an undocumented and potentially patent-encumbered format, that's > > why the binutils tools can't read or write it. >=20 > This will hopefully be no longer true in the future: > https://github.com/Microsoft/microsoft-pdb Interesting. Now somebody just have to pick this up and port it to binutils... (the good old SHTDI meme ;)) Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --tNQTSEo8WG/FKZ8E Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXVy84AAoJEPU2Bp2uRE+gw1cQAJJsvpHs7MyK08ZcKXePQzbg Z+gVG9p+gE73pTaDqXhQ1w656RSDbeAXM8H6Mv1rTUJVImO7h+fECty7YqDAnT+x 2HOOvQCAndrU1FhXo7cDqRy6mLpgcU6sZBYW8DoDN5y1BajK80RAgmXTk4zW1E+l tAh8qKLiZfK5xECTo5VQDBehBkRdIU7x/UZagxmgM2CKFiVu1dMVU7/fV3gwYJx2 SHinOAHFInX/CBaYkivSbNJ2p/wMcTbAMC7tOV5VZgxYw4GlvisCWRe9sUfSUvDf va3N2o4C22F8gg4/N1z9zeMeZHu8oHsbc+3lYBUMWIAAgJurgUp7sdLz1B0mpQpP hABMtQvB1ELENFa9bBf9Uo+HdqrHhv4/z6dsTB7UGMKRhxQePGJP7xxf9oTL3xAv /JY8RVRHk7Wh0JFE+y67bp9gLtviFLCjZ5Kgh9t7xs/pZxk6ttpiZRhBwD8NpJn/ rDPw8NXTVem8JvsfZa7LxUgIk2z5yWd9Y5bZazJpqD13a4ZIoqfBFhIQ9QQV/hXS 4UPatM9eU3YHXPGHt5/cghs5XOKUvzmXt/N8I9fJmsuc0xfpdRycJq6Pd3o1uz+u 4c59AJdibysZb5ZbgVcqleVHs9w6kBnHjbzIJH6A1WzDnVYT+bzOTHJ+p53c0sXW rc/RtpwxtQ3rIqOdnOJH =Zkvh -----END PGP SIGNATURE----- --tNQTSEo8WG/FKZ8E--