readelf --string-dump analog for objdump

Maxim Dementyev mdementyev@fluendo.com
Mon Jan 22 10:43:00 GMT 2024


Hi,

The readelf utility has a very useful option - "--string-dump=<number or
name>" which displays the contents of the indicated section as is (as
printable strings).
As far as I can understand, to do the same with the objdump you need to do
"objdump --section=<number or name> --full-contents ...".
But the output is in the "hexdump" format, the contents is splitted by 0x10
size blocks (so, not possible to grep on this contents).

Is there any plans to implement a printable strings format for this case
for the objdump utility?
Or is there a solution without parsing the hexdump format and restoring
these printable strings?

Thank you in advance!

Best regards,
Max

-- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20240122/a7ddb253/attachment.htm>


More information about the Binutils mailing list