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

Message ID e0e3a312df29f0ab692a502e4eb3e8833575ddaf.1727624528.git.fweimer@redhat.com
State Under Review
Delegated to: Adhemerval Zanella Netto
Headers
Series Teach glibc about possible page sizes and handle gaps in ld.so |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Test passed
linaro-tcwg-bot/tcwg_glibc_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_glibc_check--master-arm success Test passed

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
  

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