Browse Source

- use proper macro (no obj-code changes)

Bernhard Reutner-Fischer 16 years ago
parent
commit
5b174cbf65
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldso/ldso/dl-elf.c

+ 1 - 1
ldso/ldso/dl-elf.c

@@ -442,7 +442,7 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure,
 
 	DL_CHECK_LIB_TYPE (epnt, piclib, _dl_progname, libname);
 
-	maxvma = (maxvma + ADDR_ALIGN) & ~ADDR_ALIGN;
+	maxvma = (maxvma + ADDR_ALIGN) & PAGE_ALIGN;
 	minvma = minvma & ~0xffffU;
 
 	flags = MAP_PRIVATE /*| MAP_DENYWRITE */ ;