PATCH: Re: readelf -D --reloc bug
Nick Clifton
nickc@redhat.com
Mon Mar 31 21:20:00 GMT 2003
Hi H.J.
> 2003-03-31 H.J. Lu <hjl@gnu.org>
>
> * readelf.c (dynamic_relocations): New.
> (process_relocs) Properly handle dynamic relocation.
> (process_dynamic_segment): Fill relocation elements in
> dynamic_info.
Approved please apply - but with caveat.
Rather than using a fixed constant NUM_DYNAMIC_RELOCATIONS, please
just make the dynamic_relocations array unsized and compute the size
in the for loop. (You could even use the ARRAY_SIZE macro from
libiberty.h).
Cheers
Nick
More information about the Binutils
mailing list