On Nov 30, 2022, at 9:12 AM, Rich Felker <dalias@libc.org> wrote:

Nice catch. The references to libc are not valid in __dls2. If they
were, I would just re-run kernel_mapped_dso() from __dls2b or
something to get the right relro map, but I think instead we should do
something like the attached.

Rich
<ldso_page_size.diff>

LGTM but needs a # before the ‘define’.

This explains a weird error I was seeing with gcompat on aarch64.

Best,
-A.