This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: nm for .exe extensions?
- From: Ismail Donmez <ismail at i10z dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 7 Jun 2016 19:23:24 +0300
- Subject: Re: nm for .exe extensions?
- Authentication-results: sourceware.org; auth=none
- References: <a66eaf9339774b6a8fbc1ab4b99f428d at ntmaexbe04 dot bedford dot progress dot com> <76282617-B02E-4782-B4A0-AEB3756DE152 at etr-usa dot com> <1465314195730-127453 dot post at n5 dot nabble dot com> <20160607161221 dot GD3023 at calimero dot vinschen dot de>
Hi,
On Tue, Jun 7, 2016 at 7:12 PM, Corinna Vinschen
<corinna-cygwin@cygwin.com> wrote:
> On Jun 7 08:43, Bill Smith wrote:
>> Warren Young-2 wrote
>> > On May 24, 2016, at 6:43 AM, Benjamin Cao <
>>
>> > becao@
>>
>> > > 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
>> > 389
>> >
>> > 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.
>>
>> Hi, I'm picking this issue up from my colleague, Ben Cao. We're using
>> Visual Studio C++ to compile the executables/objects. Is the issue that
>> Visual Studio places the information in the .pdb file? That's why nm
>> doesn't display any info on an *.exe ?
>
> PDB is an undocumented and potentially patent-encumbered format, that's
> why the binutils tools can't read or write it.
This will hopefully be no longer true in the future:
https://github.com/Microsoft/microsoft-pdb
ismail
--
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