[RFC PATCH 03/23] Allow glibc to be compiled without EXEC_PAGESIZE
Florian Weimer
fweimer@redhat.com
Mon Mar 25 11:58:13 GMT 2024
* Florian Weimer:
> * Sergey Bugaev:
>
>> diff --git a/elf/dl-support.c b/elf/dl-support.c
>> index 2f502c8b..6375dc95 100644
>> --- a/elf/dl-support.c
>> +++ b/elf/dl-support.c
>> @@ -135,7 +135,11 @@ void *_dl_random;
>> #include <dl-procruntime.c>
>> #include <dl-procinfo.c>
>>
>> -size_t _dl_pagesize = EXEC_PAGESIZE;
>> +size_t _dl_pagesize
>> +#ifdef EXEC_PAGESIZE
>> + = EXEC_PAGESIZE
>> +#endif
>> +;
>
> I think the intent here is to initialize _dl_pagesize with a
> conservative default, to avoid initialization ordering issues.
> EXEC_PAGESIZE is supposed to be largest supported page size.
This was committed without addressing the comment above.
Thanks,
Florian
More information about the Libc-alpha
mailing list