[PATCH 1/2] readelf: Warn if PT_DYNAMIC segment doesn't match .dynamic section

H.J. Lu hjl.tools@gmail.com
Tue Apr 14 13:57:31 GMT 2020


On Tue, Apr 14, 2020 at 6:53 AM Jan Beulich <jbeulich@suse.com> wrote:
>
> On 14.04.2020 15:28, H.J. Lu via Binutils wrote:
> > The PT_DYNAMIC segment, which is used by the run-time loader,  must
> > exactly match the .dynamic section.
>
> Here as well as in patch 2 I'd say "should" instead of "must", and
> again I don't think such warnings should be issued by default.

I will change the wording.   When they do mismatch, it is an indication
of corrupt binary.  I think users should know about it.

-- 
H.J.


More information about the Binutils mailing list