This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: 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>

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