Browse Source

ldso: arm, metag: Use runtime pagesize

Use the generic runtime pagesize as per
ce54b92b046b65464e2d16b3842f3e97e3e0f27e

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 10 years ago
parent
commit
e11ff4a4a0
2 changed files with 0 additions and 10 deletions
  1. 0 5
      ldso/ldso/arm/dl-sysdep.h
  2. 0 5
      ldso/ldso/metag/dl-sysdep.h

+ 0 - 5
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.

+ 0 - 5
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.