瀏覽代碼

As Joakim Tjernlund rightly notes, I should have used PAGE_SIZE
not the hard coded value of 4096.

Eric Andersen 21 年之前
父節點
當前提交
1b7084ce1a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libc/misc/internals/__uClibc_main.c

+ 2 - 2
libc/misc/internals/__uClibc_main.c

@@ -139,9 +139,9 @@ __uClibc_start_main(int argc, char **argv, char **envp,
 	}
 	aux_dat += 2;
     }
-    _dl_pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : 4096;
+    _dl_pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : PAGE_SIZE;
 #else
-    _dl_pagesize = 4096;
+    _dl_pagesize = PAGE_SIZE;
 #endif
 
     /* If we are dynamically linked the shared lib loader already