[git commit] ldso: arm, metag: Use runtime pagesize

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Jan 15 08:59:21 UTC 2014


commit: http://git.uclibc.org/uClibc/commit/?id=e11ff4a4a0abfc0d2d5bc029f16d91ece969b82e
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Use the generic runtime pagesize as per
ce54b92b046b65464e2d16b3842f3e97e3e0f27e

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 ldso/ldso/arm/dl-sysdep.h   |    5 -----
 ldso/ldso/metag/dl-sysdep.h |    5 -----
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/ldso/ldso/arm/dl-sysdep.h b/ldso/ldso/arm/dl-sysdep.h
index 5a2912a..94dc1d7 100644
--- a/ldso/ldso/arm/dl-sysdep.h
+++ b/ldso/ldso/arm/dl-sysdep.h
@@ -58,11 +58,6 @@ static __always_inline unsigned long arm_modulus(unsigned long m, unsigned long
 struct elf_resolve;
 unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_entry);
 
-/* 4096 bytes alignment */
-#define PAGE_ALIGN 0xfffff000
-#define ADDR_ALIGN 0xfff
-#define OFFS_ALIGN 0x7ffff000
-
 /* ELF_RTYPE_CLASS_PLT iff TYPE describes relocation of a PLT entry or
    TLS variable, so undefined references should not be allowed to
    define the value.
diff --git a/ldso/ldso/metag/dl-sysdep.h b/ldso/ldso/metag/dl-sysdep.h
index 257ca61..ec17440 100644
--- a/ldso/ldso/metag/dl-sysdep.h
+++ b/ldso/ldso/metag/dl-sysdep.h
@@ -31,11 +31,6 @@
 struct elf_resolve;
 extern unsigned long _dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entry);
 
-/* Variable page size. */
-#define ADDR_ALIGN (_dl_pagesize - 1)
-#define PAGE_ALIGN (~ADDR_ALIGN)
-#define OFFS_ALIGN (PAGE_ALIGN & ~(1ul << (sizeof(_dl_pagesize) * 8 - 1)))
-
 /* ELF_RTYPE_CLASS_PLT iff TYPE describes relocation of a PLT entry or
    TLS variable, so undefined references should not be allowed to
    define the value.


More information about the uClibc-cvs mailing list