[PATCH 2/2] elf: Initialize GLRO (dl_read_only_area) after static dlopen (bug 33139)

Florian Weimer fweimer@redhat.com
Mon Jul 14 21:50:51 GMT 2025


* Adhemerval Zanella Netto:

> On 11/07/25 11:27, Florian Weimer wrote:
>> The _dl_read_only_area function in the uninitialized ld.so after
>> static dlopen is not able to find anything.  Instead, we need to
>> redirect to the code from the statically linked main program.
>> 
>> Fixes commit d60fffe28a46b2a41fc308c1804ff02375d27408 ("debug:
>> Improve '%n' fortify detection (BZ 30932)").
>> 
>> Tested on x86_64-linux-gnu.
>
> LGTM, thanks.
>
> Reviewed-by: Adhemerval Zanella Netto  <adhemerval.zanella@linaro.org>

Thanks for the review!

Andreas, is this still okay to push?

Florian



More information about the Libc-alpha mailing list