Show Symbol Table for OMF (.obj)?

Mark Geisert mark@maxrnd.com
Mon May 16 19:35:00 GMT 2016


Benjamin Cao writes:
> I am curious to know if there is a command that will display a symbol 
table for *.obj files. It seems as if
> commands such as "nm" or "objdump" do not do this. I get "File format 
not recognized".
> 
> If there is a way to get it to work with nm or objdump, I am all ears. 
Or if there is a different command to satisfy
> this, that would be helpful as well.

Both nm and objdump are capable of displaying symbol tables.  The error 
message you're getting means you need to explicitly specify
"--target=BFDNAME" with BFDNAME matching the .obj file's format.

The formats we typically see are pe-i386 and pei-i386 for x86 object and 
image, and pe-x86-64 and pei-x86-64 for x86_64 object and image, 
respectively.

'nm --help' and 'objdump --help' show the supported targets.

..mark


--
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



More information about the Cygwin mailing list