diff mbox series

[v3,18/29] sh: Add <bits/pagesize.h>

Message ID 14c287eb4d33a573bf17682ca68113d6fdb941bb.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, 4:31 p.m. UTC
Linux supports page sizes from 4 KiB to 64 KiB depending
on CPU type (per arch/sh/mm/Kconfig).  SH4 kernels are expected
to run SH3 binaries according to:

  Re: Bootstrapping Debian GNU/Linux distribution on SuperH
  <https://lists.debian.org/debian-arm/2001/09/msg00026.html>

Therefore, this commit supports the entire range of page sizes
for all variants.
---
 sysdeps/sh/bits/pagesize.h | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 sysdeps/sh/bits/pagesize.h
diff mbox series

Patch

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