[kwlug disc.] how to list *just* executable sections with
objdump?
Robert P. J. Day
rpjday at mindspring.com
Thu Jan 25 14:11:15 EST 2007
On Thu, 25 Jan 2007, Alex Song wrote:
> >>>>> On Thu, 25 Jan 2007 09:33:33 -0500 (EST), rpjday at mindspring.com wrote:
>
> > is there an incantation of "objdump" that will let me list just the
> > headers for the executable sections of an ELF executable?
>
> > if i want to see all of the headers, i can use:
>
> > $ objdump -h helloworld
>
> > if i want to display the contents of all the executable sections, i
> > can use:
>
> > $ objdump -d helloworld
>
> > but is there an intermediate step where i can get a list of those
> > sections that are considered "executable" that would be dumped by that
> > last command? thanks.
>
>
> Does
>
> objdump -d msgsend | grep Disassembly
>
> meet your need?
yup. but i guess there's no more direct way to get at that, is there?
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://www.fsdev.dreamhosters.com/wiki/index.php?title=Main_Page
========================================================================
More information about the KWLUG-Disc
mailing list