readelf -D --reloc bug

H. J. Lu hjl@lucon.org
Mon Mar 31 17:11:00 GMT 2003
On Mon, Mar 31, 2003 at 08:11:51AM -0800, H. J. Lu wrote:
> # readelf -D --reloc /bin/ls
> 
> There are no dynamic relocations in this file.
> 
> It is clearly not true.
> 

There are several problems with -D:

1. Not all elements in dynamic_info are filled, including those for
relocation information.
2. Readelf assumes there can only be DT_REL, DT_RELA or DT_JMPREL, but
not at the same time.

H.J.



More information about the Binutils mailing list