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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 In-Reply-To: Date: Tue, 24 May 2016 07:15:23 -0600 Message-Id: <76282617-B02E-4782-B4A0-AEB3756DE152@etr-usa.com> References: To: The Cygwin Mailing List X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u4OEFopR028539 On May 24, 2016, at 6:43 AM, Benjamin Cao 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