delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=dczW2dOTSHKiyR8odNpQMmu030sttx7uIcSpq26FFz7uk2/komfNL | |
dQU+k4ivZqyYtD56Urgh+1rvd8iPmoilUAgKaRaqKKrdOx9PPdlJ3/YOMKqZyyBJ | |
DTzANX4/TXjeDjB6/eQ32mVp0JKC26vDJMcR5pqTJZ2mNZOsZfWXrU= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=aTdJ0T6z8OxENjDvy/hEb87f+fk=; b=VXiDUf287Hmeoma5xqVz0+Y0DP7P | |
8f53OK6PcfrvmDKf0UJHOQO+bRpxUcwh9vXMemw5smrtSwuLDAACy7v7C2sVqoNH | |
fFZd/hXXrsiphgSRcRcpDV5lkpyPq/Rp18UHLmM0XLt/ghvufTXTPqa+bl1RS4bo | |
qY1xWFFsFmo8EWs= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 |
Date: | Tue, 7 Jun 2016 22:31:53 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: nm for .exe extensions? |
Message-ID: | <20160607203153.GE3023@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <a66eaf9339774b6a8fbc1ab4b99f428d AT ntmaexbe04 DOT bedford DOT progress DOT com> <76282617-B02E-4782-B4A0-AEB3756DE152 AT etr-usa DOT com> <1465314195730-127453 DOT post AT n5 DOT nabble DOT com> <20160607161221 DOT GD3023 AT calimero DOT vinschen DOT de> <CAFo71_6UOvDv2eNRWVix96iJDXw3+bXg1CxoMe-WRxFy8+aXyQ AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAFo71_6UOvDv2eNRWVix96iJDXw3+bXg1CxoMe-WRxFy8+aXyQ@mail.gmail.com> |
User-Agent: | Mutt/1.6.1 (2016-04-27) |
--tNQTSEo8WG/FKZ8E Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jun 7 19:23, Ismail Donmez wrote: > Hi, >=20 > On Tue, Jun 7, 2016 at 7:12 PM, Corinna Vinschen > <corinna-cygwin AT cygwin DOT com> 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" -----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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |