From: Mark Geisert <mark@maxrnd.com>
To: cygwin@cygwin.com
Subject: Re: Show Symbol Table for OMF (.obj)?
Date: Mon, 16 May 2016 19:35:00 -0000 [thread overview]
Message-ID: <loom.20160516T212713-844@post.gmane.org> (raw)
In-Reply-To: <1721a243f6fa4a32877cfdda157ad327@ntmaexbe04.bedford.progress.com>
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
next prev parent reply other threads:[~2016-05-16 19:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-16 19:11 Benjamin Cao
2016-05-16 19:35 ` Mark Geisert [this message]
2016-05-16 19:42 ` Warren Young
2016-05-16 20:05 ` Yaakov Selkowitz
2016-05-19 20:29 ` Hans-Bernhard Bröker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20160516T212713-844@post.gmane.org \
--to=mark@maxrnd.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).