diff mbox series

[v3,10/29] m68k: Add <bits/pagesize.h>

Message ID 12ac67f1b63ed8dc7c54cd267de4ffbf4cee5926.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:17 p.m. UTC
This commit assumes that traditional m68k and Coldfire binaries
are incompatible and cannot run with the opposite kernel.

Based on available information, Sun3 kernels (with 8 KiB pages
according to arch/m68k/Kconfig) can run traditional m68k userspace
code, so the page size for such binaries is either 4 KiB or 8 KiB.
Page size on Coldfire kernels is always 8 KiB.
---
 sysdeps/m68k/bits/pagesize.h          | 2 ++
 sysdeps/m68k/coldfire/bits/pagesize.h | 2 ++
 2 files changed, 4 insertions(+)
 create mode 100644 sysdeps/m68k/bits/pagesize.h
 create mode 100644 sysdeps/m68k/coldfire/bits/pagesize.h
diff mbox series

Patch

diff --git a/sysdeps/m68k/bits/pagesize.h b/sysdeps/m68k/bits/pagesize.h
new file mode 100644
index 0000000000..373d367b7b
--- /dev/null
+++ b/sysdeps/m68k/bits/pagesize.h
@@ -0,0 +1,2 @@ 
+#define __GLIBC_PAGE_SHIFT_MIN 12
+#define __GLIBC_PAGE_SHIFT_MAX 13
diff --git a/sysdeps/m68k/coldfire/bits/pagesize.h b/sysdeps/m68k/coldfire/bits/pagesize.h
new file mode 100644
index 0000000000..3a01770005
--- /dev/null
+++ b/sysdeps/m68k/coldfire/bits/pagesize.h
@@ -0,0 +1,2 @@ 
+#define __GLIBC_PAGE_SHIFT_MIN 13
+#define __GLIBC_PAGE_SHIFT_MAX 13