[PATCH] Explicitly get .dynamic section for "readelf -d"

Nick Clifton nickc@redhat.com
Thu Jun 10 17:30:00 GMT 2004


Hi Jie,

> "readelf -d" cannot display the dynamic segment correctly for some MIPS
> targets when there are more than one section in the dynamic segment and
> .dynamic section does not come first. This patch fix this bug.

Thanks very much for submitting this patch.

There is a small problem with it - it contains duplicated code.  I think 
that a better approach would be to put the scan for the .dynamic section 
into the code in process_program_headers() where dynamic_addr and 
dynamic_size are currently initialised.  Could you try this out please ?

Cheers
   Nick




More information about the Binutils mailing list