From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98029 invoked by alias); 24 May 2016 13:24:48 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 97106 invoked by uid 89); 24 May 2016 13:24:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-HELO: mail-qg0-f51.google.com Received: from mail-qg0-f51.google.com (HELO mail-qg0-f51.google.com) (209.85.192.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 24 May 2016 13:19:19 +0000 Received: by mail-qg0-f51.google.com with SMTP id f92so6735332qgf.0 for ; Tue, 24 May 2016 06:18:37 -0700 (PDT) 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) Received: from [172.21.188.188] ([149.6.156.42]) by smtp.googlemail.com with ESMTPSA id 89sm820896qth.2.2016.05.24.06.07.28 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 May 2016 06:07:29 -0700 (PDT) Subject: Re: nm for .exe extensions? To: cygwin@cygwin.com References: From: Marco Atzeri Message-ID: Date: Tue, 24 May 2016 13:29:00 -0000 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: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00283.txt.bz2 Message-ID: <20160524132900.sbparpjmH0jEcO-DlTGgpmHKO_RWoxW_pfr6aSE3yWw@z> 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