From e11ff4a4a0abfc0d2d5bc029f16d91ece969b82e Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 11 Jan 2014 19:43:12 +0100 Subject: [PATCH] ldso: arm, metag: Use runtime pagesize Use the generic runtime pagesize as per ce54b92b046b65464e2d16b3842f3e97e3e0f27e Signed-off-by: Bernhard Reutner-Fischer --- ldso/ldso/arm/dl-sysdep.h | 5 ----- ldso/ldso/metag/dl-sysdep.h | 5 ----- 2 files changed, 10 deletions(-) diff --git a/ldso/ldso/arm/dl-sysdep.h b/ldso/ldso/arm/dl-sysdep.h index 5a2912ab5..94dc1d707 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 257ca610f..ec17440fc 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. -- 2.11.0