[PATCH v3 22/32] elf: Introduce GLPM accessor for the protected memory area
Florian Weimer
fweimer@redhat.com
Sun Feb 2 17:28:49 GMT 2025
* Joseph Myers:
> On Thu, 7 Dec 2023, Florian Weimer wrote:
>
>> The memory area is still allocated in the data segment, so this change
>> is preparatory only.
>
> OK, presuming that before commit you check for any new / moved references
> to dl_rtld_map and update them as well. (At least dl-cet.c has moved to
> sysdeps/x86_64/ - though as per my review of the previous patch, I tend to
> think the references there should change to using is_rtld_link_map.)
Yes, we fixed that up already:
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri Dec 20 15:52:57 2024 +0100
elf: Introduce is_rtld_link_map
Unconditionally define it to false for static builds.
This avoids the awkward use of weak_extern for _dl_rtld_map
in checks that cannot be possibly true on static builds.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
commit 40bf25b75418a7fa22ffc22dc321465ae7061cd2
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Dec 21 04:21:55 2024 +0800
Fix elf: Introduce is_rtld_link_map [BZ #32488]
Also use is_rtld_link_map in dl-cet.c. This fixes BZ #32488.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Thanks,
Florian
More information about the Libc-alpha
mailing list