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: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 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-HELO: mail-qg0-f44.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=lA27SSopB7/XKOdVTmEgSJNCvuDafGGpHM1a7OKqCGrT6d9xeTAgdGnL/ctaJHLWmq Ld/YzZbD88OsOzy2ZVTpKATK0UGSVOEP4Wi98WDc02N/dMP/CGVn1pgKoAwMEd0GXd/B 8hxRxKmTHW+ywJERnVdO2s+pLjONmKl5U6zRfCdEaP9i2dmFi8uDnSmcfkJYCYTtpJ4o kOfbdNSJVTkZvLJBwhJzVv6XKv8IdBHvH58gMdGjYGmJSo59fIfVh39hOjUW2qX91iNt 9x1tndq4wwcrkypI815WIAcrHB7QE74KwNj2Eifw5zocdmGmFvMXkGbL2csrX1fNwd+C 6+VA== X-Gm-Message-State: ALyK8tLGy/qlRKeTjywdvgx7Lqy4kHvztbFYvG1pmFMCdaknKX2AvPntsht5lg2O1q0bQw== 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 AT cygwin DOT com References: From: Marco Atzeri Message-ID: 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: 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