[PATCH v4] ld.so: Replace DL_RO_DYN_SECTION with dl_relocate_ld
H.J. Lu
hjl.tools@gmail.com
Wed Sep 22 18:00:49 GMT 2021
On Mon, Sep 20, 2021 at 1:54 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * H. J. Lu:
>
> > We can't relocate entries in dynamic section if it is readonly:
> >
> > 1. Add a l_ld_readonly field to struct link_map to indicate if dynamic
> > section is readonly and set it based on p_flags of PT_DYNAMIC segment.
> > 2. Replace DL_RO_DYN_SECTION with dl_relocate_ld to decide if dynamic
> > section should be relocated.
> > 3. Remove DL_RO_DYN_TEMP_CNT.
> > 4. Don't use a static dynamic section to make readonly dynamic section
> > in vDSO writable.
> > 5. Remove the temp argument from elf_get_dynamic_info.
>
> I don't have any objections to this patch.
>
> Thanks,
> Florian
>
I am checking in this patch now.
--
H.J.
More information about the Libc-alpha
mailing list