瀏覽代碼

- use proper macro (no obj-code changes)

Bernhard Reutner-Fischer 16 年之前
父節點
當前提交
5b174cbf65
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 */ ;