[PATCH v4 06/23] arm: Add <bits/pagesize.h>

Florian Weimer fweimer@redhat.com
Tue May 13 10:02:53 GMT 2025


Linux only uses HAVE_PAGE_SIZE_4KB in arch/arm/Kconfig.  In theory,
32-bit binaries could run on 64-bit kernels with larger page sizes
in compat mode, but binutils ld defaults to 4K pages, so nothing
will work.  Testing in compat mode just needs to use 4K page kernels.
---
v4: Support 4K page size only.
 sysdeps/arm/bits/pagesize.h | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 sysdeps/arm/bits/pagesize.h

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




More information about the Libc-alpha mailing list