This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: nm for .exe extensions?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]