[kwlug disc.] how to list *just* executable sections with objdump?

Alex Song aqfsong at yahoo.ca
Thu Jan 25 14:01:40 EST 2007


>>>>> 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?

Alex

-- 
Two wrongs don't make a right, but three lefts do.


More information about the KWLUG-Disc mailing list