From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122922 invoked by alias); 24 May 2016 14:08:14 -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 122900 invoked by uid 89); 24 May 2016 14:08:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=customer, his X-HELO: mail-qg0-f42.google.com Received: from mail-qg0-f42.google.com (HELO mail-qg0-f42.google.com) (209.85.192.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 24 May 2016 14:08:12 +0000 Received: by mail-qg0-f42.google.com with SMTP id e93so7533272qgf.2 for ; Tue, 24 May 2016 07:08:12 -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=SbfbZ+3crG3DyVOT5XwxumJUC2fiO8qz3dTQ8pXwzr5cfQcZER5mcx2VJ43cxbmSdi TF5wss66mVHgQkdB99n/qcswCkJ83sh6lHISHG68dkzQCq9eAddDhgOSGSKgbvtCFkCV WrfU6aH1lUx9Ofj4HeN/peuPyA6S0DMnJy2nYrZqUEtF4qYFShohm8bKltvwgs4UUecw S4RX781UtrP6zki4L5epB4oujgMmOPBDmmfGAIVa1ymNEB0pfk2+ejX/R/AR5CzoeOaR j3H6WICE1QBmAlclQUE6jC+2dOTOEQTqivg87sVkm0Hri2fJanr8D6KKp7wJLThEMx4E 1Vpg== X-Gm-Message-State: ALyK8tKZnVKpsVrPRMd3LWX6tLcvwsp/PXn8EaVtzBNAPvAUyGdiRR5aJF/jU0rUv5xN8g== 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 16:44: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/msg00289.txt.bz2 Message-ID: <20160524164400.1kX81Pmhq1Qup_lHtPtPCkhbdORGf2EyRhgV9khQ0pk@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