X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-HELO: etr-usa.com
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Subject: Re: nm for .exe extensions?
From: Warren Young <wyml@etr-usa.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@ntmaexbe04.bedford.progress.com>
To: The Cygwin Mailing List <cygwin@cygwin.com>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u4ODk735026416

On May 24, 2016, at 6:43 AM, Benjamin Cao <becao@progress.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


