diff mbox series

[v3,03/29] aarch64: Add <bits/pagesize.h>

Message ID e0e3a312df29f0ab692a502e4eb3e8833575ddaf.1727624528.git.fweimer@redhat.com
State New
Headers show
Series Teach glibc about possible page sizes and handle gaps in ld.so | expand

Commit Message

Florian Weimer Sept. 29, 2024, 3:53 p.m. UTC
According to Program Loading and Dynamic Linking in
<https://github.com/ARM-software/abi-aa/blob/main/sysvabi64/sysvabi64.rst>,
the maximum supported page size by the ABI is 64 KiB, so the
maximum page shift is 16 bits.
---
 sysdeps/aarch64/bits/pagesize.h | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 sysdeps/aarch64/bits/pagesize.h
diff mbox series

Patch

diff --git a/sysdeps/aarch64/bits/pagesize.h b/sysdeps/aarch64/bits/pagesize.h
new file mode 100644
index 0000000000..cd688d3fb0
--- /dev/null
+++ b/sysdeps/aarch64/bits/pagesize.h
@@ -0,0 +1,2 @@ 
+#define __GLIBC_PAGE_SHIFT_MIN 12
+#define __GLIBC_PAGE_SHIFT_MAX 16