Show Symbol Table for OMF (.obj)?

Warren Young wyml@etr-usa.com
Mon May 16 19:42:00 GMT 2016


On May 16, 2016, at 1:10 PM, Benjamin Cao <becao@progress.com> wrote:
> 
> 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”.

nm *is* the right tool, but only for file types it knows about.

You should only expect a platform’s native nm to support the native executable types of the platform it runs on.  In the case of Cygwin, that’s various flavors of COFF and PE.  OMF is an entirely different format.

Cygwin’s nm happens to also support ELF for some reason, but that is yet a third object format.

Assuming libbfd knows OMF, you could rebuild your own OMF cross-development toolchain.  Then *its* nm would be the right tool for the job.

  https://en.wikipedia.org/wiki/Binary_File_Descriptor_library
--
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