This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: objdump --syms -j .text
- From: Pieter Arnout <pieter at powerescape dot com>
- To: AChittenden at bluearc dot com
- Cc: binutils at sources dot redhat dot com, dave dot korn at artimi dot com
- Date: Thu, 31 Mar 2005 09:27:52 -0800
- Subject: RE: objdump --syms -j .text
<x-tad-bigger>Forgive me for asking, but why don't you just grep out the .text symbols from a normal objdump? Is it because you still need the object file format?
If not, you could do something like this:
objdump -x <infile> | grep ".text" > <tempfile>
Cheers.
Pieter
----Original Message----
>From: Andy Chittenden
>Sent: 31 March 2005 15:27
> I want to dump out just the symbols in the .text section. Is that
> possible? The "obvious" invocation of using "-j .text --syms" seems to
> ignore the -j option and dumps the symbols for all sections.
Yes, I see that behaviour too. You can work-around by using "objcopy -j
.text <infile> <tempfile>" to extract just the text section to a temporary
file and then run "objdump --syms" on that.
cheers,
DaveK
--
Can't think of a witty .sigline today....</x-tad-bigger>