[PATCH] elf: Support vDSO with more than one PT_LOAD with v_addr starting at 0 (BZ 32583)

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Thu Dec 18 19:59:57 GMT 2025



On 18/12/25 12:44, Florian Weimer wrote:
> * Adhemerval Zanella:
> 
>> The setup_vdso assumes that vDSO will contain only one PT_LOAD segment
>> and that 0 is the sentinel for the start mapping address. Although the
>> kernel avoids adding more than one PT_LOAD to avoid compatibility
>> issues, there is no impending issue that prevents glibc from supporting
>> vDSO with multiple PT_LOAD (as some wrapper tools do [1]).
> 
> [1] is a dangling reference.

Oops, I meant the second comment from the bug report.  The reporter does
not give much more detail though.

https://sourceware.org/bugzilla/show_bug.cgi?id=32583#c2

> 
> The change as such seems fine.  Maybe add a comment that this check is
> unnecessary on original Linux?

I will do.

> 
> Reviewed-by: Florian Weimer <fweimer@redhat.com>
> 
> Thanks,
> Florian
> 



More information about the Libc-alpha mailing list