[PATCH v7] elf: Handle static PIE with non-zero load address [BZ #31799]
Noah Goldstein
goldstein.w.n@gmail.com
Mon Oct 28 14:54:05 GMT 2024
On Sat, Oct 26, 2024 at 5:29 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> For a static PIE with non-zero load address, its PT_DYNAMIC segment
> entries contain the relocated values for the load address in static PIE.
> Since static PIE usually doesn't have PT_PHDR segment, use p_vaddr of
> the PT_LOAD segment with offset == 0 as the load address in static PIE
> and adjust the entries of PT_DYNAMIC segment in static PIE by properly
> setting the l_addr field for static PIE. This fixes BZ #31799.
>
> OK to install?
>
> Thanks.
Can you post the V7 property instead of as an attachment?
But it looks fine to me.
>
> --
> H.J.
More information about the Libc-alpha
mailing list