[RFD] How legal is it to delete dynamic tags?
Matthew Fortune
Matthew.Fortune@imgtec.com
Mon Apr 18 09:44:00 GMT 2016
Alan Modra <amodra@gmail.com> writes:
> On Fri, Apr 15, 2016 at 03:08:41PM +0000, Matthew Fortune wrote:
> > Firstly, to what extent is it OK to just delete a dynamic tag rather
> > than set it to DT_NULL?
>
> DT_NULL marks the end of the dynamic tags array. Setting a tag to
> DT_NULL is not an option (except when the following tag is DT_NULL).
> You'll break ld.so if you do that.
Thanks. I had some vague memory that DT_NULL couldn't be used arbitrarily
but couldn't think why.
Matthew
More information about the Binutils
mailing list