readelf --string-dump analog for objdump

Nick Clifton nickc@redhat.com
Mon Jan 22 17:42:46 GMT 2024


Hi Max,

> Is there any plans to implement a printable strings format for this case for the objdump utility?

No, but of course if you would like to write a patch to implement
such a feature we will be happy to review it.

> Or is there a solution without parsing the hexdump format and 
> restoring these printable strings?

I take it that you need to restrict the output to strings found in
just one section ?  (Otherwise you could use the "strings" tool).

Actually talking of the strings program it might be a lot easier
to augment this tool to restrict its output to a specified section.
It already has a function called strings_a_section() which decides
if a given section should be scanned.  It would not take much to
enhance this function to test for a named section...

Cheers
   Nick




More information about the Binutils mailing list