Encoding page size in the ELF header
Andreas Schwab
schwab@linux-m68k.org
Sun Sep 27 10:01:00 GMT 2015
Florian Weimer <fweimer@redhat.com> writes:
> On 09/27/2015 10:55 AM, Andreas Schwab wrote:
>> Rich Felker <dalias@libc.org> writes:
>>
>>> On Sat, Sep 26, 2015 at 07:13:00PM -0400, Frank Ch. Eigler wrote:
>
>>>> Could the app more portably use
>>>>
>>>> int critical_data __attribute__((section(".data.critical")));
>>>>
>>>> and maybe a linker script widgetry to assure padding & fetch
>>>> base-addresses, and then mprotect it that way? It would become
>>>> independent of page size.
>>>
>>> That does not eliminate the page size dependency.
>>
>> MAXPAGESIZE is available in the linker script.
>
> But ld.so supports running binaries with a larger kernel page size than
> MAXPAGESIZE, don't we? In most cases, it does work, after all.
Does it?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list