From: Ulrich Drepper Date: Tue, 6 Nov 2007 01:12:33 +0000 (+0000) Subject: * elf/rtld.c (dl_main): Use the page size to find the map start. X-Git-Tag: cvs/fedora-glibc-20071212T1051~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b92e378086449e2707b8b2fd3d2f50cc0b8871e9;p=thirdparty%2Fglibc.git * elf/rtld.c (dl_main): Use the page size to find the map start. --- diff --git a/ChangeLog b/ChangeLog index 92e1e5ab265..e6d92a9312a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-11-05 Daniel Jacobowitz + + * elf/rtld.c (dl_main): Use the page size to find the map start. + 2007-11-05 Ulrich Drepper * time/tzfile.c (__tzfile_read): Fix check for version 0 data files. diff --git a/elf/rtld.c b/elf/rtld.c index 6df81fb2c1b..98817d9fa05 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -1166,7 +1166,8 @@ of this helper program; chances are you did not intend to run this program.\n\ ElfW(Addr) allocend; /* Remember where the main program starts in memory. */ - mapstart = (main_map->l_addr + (ph->p_vaddr & ~(ph->p_align - 1))); + mapstart = (main_map->l_addr + + (ph->p_vaddr & ~(GLRO(dl_pagesize) - 1))); if (main_map->l_map_start > mapstart) main_map->l_map_start = mapstart; diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 64617856693..c92e6abf45a 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2007-11-05 Ulrich Drepper + + * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork): + Use __linkin_atfork. + 2007-11-03 Mike Frysinger * sysdeps/unix/sysv/linux/sh/lowlevellock.S (LOAD_FUTEX_WAIT): Add diff --git a/nptl/sysdeps/unix/sysv/linux/register-atfork.c b/nptl/sysdeps/unix/sysv/linux/register-atfork.c index 71abd0fb96f..bd103295fb8 100644 --- a/nptl/sysdeps/unix/sysv/linux/register-atfork.c +++ b/nptl/sysdeps/unix/sysv/linux/register-atfork.c @@ -98,8 +98,7 @@ __register_atfork (prepare, parent, child, dso_handle) newp->child_handler = child; newp->dso_handle = dso_handle; - newp->next = __fork_handlers; - __fork_handlers = newp; + __linkin_atfork (newp); } /* Release the lock. */