This is the mail archive of the
mailing list for the Cygwin project.
Re: nm for .exe extensions?
- From: Warren Young <wyml at etr-usa dot com>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Tue, 24 May 2016 07:15:23 -0600
- Subject: Re: nm for .exe extensions?
- Authentication-results: sourceware.org; auth=none
- References: <a66eaf9339774b6a8fbc1ab4b99f428d at ntmaexbe04 dot bedford dot progress dot com>
On May 24, 2016, at 6:43 AM, Benjamin Cao <firstname.lastname@example.org> 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
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple