Add -p option to readelf so that sections can be dumped as strings

Nick Clifton nickc@redhat.com
Thu Aug 30 14:30:00 GMT 2007
Hi Daniel,

> Nothing in the NEWS or documentation entries tells me what the output
> looks like; neither does the test since it uses wildcards.  What sort
> of strings are they?  Raw byte dumps?

Oh sorry.  They look like this:

   % readelf -p.GCC.command.line hello.o

   String dump of section '.GCC.command.line':
     [     0]  -iprefix 
/work/builds/gcc/current/arm-eabi/gcc/../lib/gcc/arm-eabi/4.3.0/
     [    5e]  -isystem ../gcc/include
     [    76]  -isystem ../gcc/include-fixed
     [    94]  -D__USES_INITFINI__ hello.c
     [    b0]  -frecord-gcc-switches

Cheers
   Nick



More information about the Binutils mailing list