]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Provide static initializer for _dl_pagesize in statically linked code
authorUlrich Drepper <drepper@gmail.com>
Sun, 11 Sep 2011 15:25:51 +0000 (11:25 -0400)
committerUlrich Drepper <drepper@gmail.com>
Sun, 11 Sep 2011 15:25:51 +0000 (11:25 -0400)
ChangeLog
elf/dl-support.c

index 03b02d33198469d987f4e56af81d596f085a16eb..2736b979cb3e344be2d75c317582898464a0990c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-09-11  Ulrich Drepper  <drepper@gmail.com>
+
+       * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
+
 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
 
        * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of __set_errno.
index 1b128c37ff52570d45e1de94f2e25882ec94ad4c..4226d123227055cdd846c9c058295644b1154f36 100644 (file)
@@ -1,5 +1,5 @@
 /* Support for dynamic linking code in static libc.
-   Copyright (C) 1996-2008,2009,2010 Free Software Foundation, Inc.
+   Copyright (C) 1996-2008,2009,2010,2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -24,6 +24,7 @@
 #include <libintl.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <sys/param.h>
 #include <ldsodefs.h>
 #include <dl-machine.h>
 #include <bits/libc-lock.h>
@@ -105,7 +106,7 @@ hp_timing_t _dl_cpuclock_offset;
 
 void (*_dl_init_static_tls) (struct link_map *) = &_dl_nothread_init_static_tls;
 
-size_t _dl_pagesize;
+size_t _dl_pagesize = EXEC_PAGESIZE;
 
 unsigned int _dl_osversion;