summaryrefslogtreecommitdiff
path: root/ldso/ldso/sparc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-28 21:33:41 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-28 21:33:41 +0000
commita46c34c4ec04aa052116f787040180d12b74793b (patch)
tree6a12ad7d75020df4db4f4fef3ac80173e72abac4 /ldso/ldso/sparc
parent6a44e26b674d67ec8e326bd1f85e9cdb9fbd59c2 (diff)
Patch from Tobias Anderberg <tobias.anderberg@axis.com> to abstract
out page alignment issues. As we we were assuming 4k pages, which need not be the case...
Diffstat (limited to 'ldso/ldso/sparc')
-rw-r--r--ldso/ldso/sparc/dl-sysdep.h4
-rw-r--r--ldso/ldso/sparc/ld_sysdep.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/ldso/ldso/sparc/dl-sysdep.h b/ldso/ldso/sparc/dl-sysdep.h
index 3c8d9b8d1..98660e03b 100644
--- a/ldso/ldso/sparc/dl-sysdep.h
+++ b/ldso/ldso/sparc/dl-sysdep.h
@@ -123,3 +123,7 @@ __asm__("mov %%g0,%%Y\n\t" \
#define _dl_linux_resolve _elf_rtbndr
#endif
+/* 4096 bytes alignment */
+#define PAGE_ALIGN 0xfffff000
+#define ADDR_ALIGN 0xfff
+#define OFFS_ALIGN 0x7ffff000
diff --git a/ldso/ldso/sparc/ld_sysdep.h b/ldso/ldso/sparc/ld_sysdep.h
index 3c8d9b8d1..98660e03b 100644
--- a/ldso/ldso/sparc/ld_sysdep.h
+++ b/ldso/ldso/sparc/ld_sysdep.h
@@ -123,3 +123,7 @@ __asm__("mov %%g0,%%Y\n\t" \
#define _dl_linux_resolve _elf_rtbndr
#endif
+/* 4096 bytes alignment */
+#define PAGE_ALIGN 0xfffff000
+#define ADDR_ALIGN 0xfff
+#define OFFS_ALIGN 0x7ffff000