delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/05/24/10:15:55

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:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=VolBA3/hOVnQNSYtWXhiQNPpafNu
JgXQ8JVf0bty2mp1FjVd8JnojXNlOBxalsOn2Y0SxtkTzqhQuzuAQ7mvnhrwHC+W
QpGn8NaU/rrPQ/+09R+6Q5VbUswlUkRMixGsXHRGKYwBrxNeZji50drcRnJTt9cx
QTA1+Zxhj1u+mK0=
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:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; s=default; bh=QYqgEmXxqj4MwkdtRBDEb3GzI5Y=; b=DK
cTPAIBUZMxhX+7soVJPIruLYjpCCGjfA9x4Lm82QeBtScmN+to8/mNqhSFChSGyy
SVHRsIKIXxmAQ3o2EdnVKITE/dggpoLBVNqvWUe6dinJIVJ2BQnW9CeEfkS6oxDc
DDZrIkn7chdsEpKyGjXCKPSVFmBMu/yKlszJgdn6Y=
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=-0.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*r:envelope-sender
X-HELO: etr-usa.com
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Subject: Re: nm for .exe extensions?
From: Warren Young <wyml AT etr-usa DOT com>
In-Reply-To: <a66eaf9339774b6a8fbc1ab4b99f428d@ntmaexbe04.bedford.progress.com>
Date: Tue, 24 May 2016 07:15:23 -0600
Message-Id: <76282617-B02E-4782-B4A0-AEB3756DE152@etr-usa.com>
References: <a66eaf9339774b6a8fbc1ab4b99f428d AT ntmaexbe04 DOT bedford DOT progress DOT com>
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u4OEFopR028539

On May 24, 2016, at 6:43 AM, Benjamin Cao <becao AT progress DOT com> wrote:
> 
> The executable, when run with nm in Cygwin, results in a "no symbols" result, whereas it generates a symbol table in unix.

That’s not what I see here.  Given hello.c containing a “Hello, world!” program:

  $ make hello
  cc     hello.c   -o hello
  $ nm hello.exe | wc -l
  389

If I strip the exe, I get “No symbols,” as expected.  There’s 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 expect to get useful output from nm on a stripped binary if it’s an object file or a DLL.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019