nm for .exe extensions?
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Jun 7 20:32:00 GMT 2016
On Jun 7 19:23, Ismail Donmez wrote:
> 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
Interesting. Now somebody just have to pick this up and port it to
binutils... (the good old SHTDI meme ;))
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160607/4f954a0d/attachment.sig>
More information about the Cygwin
mailing list