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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=wCoBzmW0ndmoKCjZ
	zXuFuE9oKIFAXALa6cLc9hZjKrg7KikK6YNI3Qg/CmtcojI1ZZYcg0/uCxRBB6LM
	q4YlEQD093t56Du17HsMeJ6DNsHahl8LiJGmn7XuEwY7MgQM45fd2ajhdOAlabIk
	/SG5HfkfKxc4gcwxRkFkZ2uQ8zw=
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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=AdYUhEQmBERTV2z3qMDrGF
	9AuSw=; b=iKIhJpnYKZpBBwZRriGq7wxGOm/B+Oa9JFfkN3Rsqgv1qyQqV5f4eI
	fHsd5rOjaaqGBxd1luD3j84tdb51CM4/jjRRisqpA3HV1GKRD2rhdfr4n2EOGjdV
	7c2gcZjs/PklTTgXSbTcWvMnRBKTVJF5Y6zcbdUGa7B2pdXu3C4Oo=
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: mail-qg0-f51.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:subject:to:references:from:message-id:date         :user-agent:mime-version:in-reply-to:content-transfer-encoding;        bh=Dp/XHGZuJwQdJ3A4r6xQ0jfLWdByksLl0ylQiwoePQ4=;        b=SOUJLIiGR/fxJC2/9ndk6D8VSuhb0SwSIPlb+Mvo0oIaNocwHmXXDXEO+lB+A49t6r         62C1Qb0t/GXLfndBwgJYwnwBZmaWYeOTVUuSh0nMH3nFucnFUR0wN+nZTeYy043/0xMn         K6iOET+HLjTqbzf26VSDUR3pB18F6ju9WoBcBwfqb5VoFo+5Yk/jlUdPFdNCQn+kShv2         +T6boZMp++sj/k2BUAkMSXoxixlSQ7MAuppQc8S2FhUHneb0QhR43Ju5yMyCSU8wg/kg         0tW3Xcw7KORFBhijYAOsLqfZ6cOFRvfBmy4bl4PKV+em5cDO++4YuER+gD1zc5tseN2H         IA+Q==
X-Gm-Message-State: ALyK8tI7P7CIQin65VUA4iF2KKTv0BQqmrnlptz5RXzjrpVAWGk1qbIbd473CU3TCvIrUQ==
X-Received: by 10.140.21.164 with SMTP id 33mr3132017qgl.34.1464095250066;        Tue, 24 May 2016 06:07:30 -0700 (PDT)
Subject: Re: nm for .exe extensions?
To: cygwin@cygwin.com
References: <a66eaf9339774b6a8fbc1ab4b99f428d@ntmaexbe04.bedford.progress.com>
From: Marco Atzeri <marco.atzeri@gmail.com>
Message-ID: <cff23381-6d47-5382-62c4-dc6e94e6aff0@gmail.com>
Date: Tue, 24 May 2016 15:07:20 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
MIME-Version: 1.0
In-Reply-To: <a66eaf9339774b6a8fbc1ab4b99f428d@ntmaexbe04.bedford.progress.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 24/05/2016 14:43, Benjamin Cao wrote:
> Hi,
>
> I am working with a customer on using the nm command in Cygwin for Windows. The customer wants to be able to generate a symbol table on *.exe files similar to what nm does on unix platforms. The executable, when run with nm in Cygwin, results in a "no symbols" result, whereas it generates a symbol table in unix.
>
> I understand that these commands will certainly be different in both Cygwin for Windows and the unix platforms, but is there any way that *.exe will generate a symtab with nm?
>
> Note: The customer said the Windows "dumpbin" does not satisfy his needs either... what fun.
>
> Thanks,
> Ben Cao
>

How was compiled the *.exe file ?

For both Unix and Windows stripped programs do not contain any more any 
symbol. Example from one of my package:

$ nm ncview.exe |wc -l
5540

$ nm ncview.exe |tail
00440824 T _XUndefineCursor
00424b8b t _xy_track_pointer
0062a230 b _y0.4078
0062a270 b _y0.4110
00424864 t _yaxis_range_callback
00626a68 b _ydim_selection_widget
00626a6c b _ydimlist_label_widget
00626a70 b _ydimlist_widget
00632890 i fthunk
00632498 i hname

but
$ nm /usr/bin/ncview.exe
nm: /usr/bin/ncview.exe: no symbols

As the installed version was stripped.




--
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

